From: Armin R. <ar...@us...> - 2004-08-12 10:44:56
|
Update of /cvsroot/psyco/psyco/c In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13782 Modified Files: dispatcher.h Log Message: Fixed segfault problem. It was related to the recent LOAD_GLOBAL tricks. LOAD_GLOBAL is a pain! Index: dispatcher.h =================================================================== RCS file: /cvsroot/psyco/psyco/c/dispatcher.h,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** dispatcher.h 23 Sep 2003 15:43:56 -0000 1.19 --- dispatcher.h 12 Aug 2004 10:44:47 -0000 1.20 *************** *** 232,237 **** EXTERNFN code_t* psyco_dont_respawn(void* arg, int extrasize); EXTERNFN void psyco_respawn_detected(PsycoObject* po); inline bool detect_respawn(PsycoObject* po) { ! if (!++po->respawn_cnt) { psyco_respawn_detected(po); return true; --- 232,238 ---- EXTERNFN code_t* psyco_dont_respawn(void* arg, int extrasize); EXTERNFN void psyco_respawn_detected(PsycoObject* po); + #define detect_respawn_ex(po) (!++(po)->respawn_cnt) inline bool detect_respawn(PsycoObject* po) { ! if (detect_respawn_ex(po)) { psyco_respawn_detected(po); return true; |