Author: leo
Date: Mon Oct 31 08:19:28 2005
New Revision: 9678

Modified:
   trunk/src/stacks.c
Log:
work around stack/GC/ABA bug in t/library/pge_4 - #37563

Modified: trunk/src/stacks.c
==============================================================================
--- trunk/src/stacks.c  (original)
+++ trunk/src/stacks.c  Mon Oct 31 08:19:28 2005
@@ -343,6 +343,13 @@ stack_pop(Interp *interpreter, Stack_Chu
         break;
     }
 
+    /*
+     * Invalidate stack entry. It seems that due to reusage (after GC)
+     * there can be stale entries on the stack. At least
+     * t/library/pge_4 failes without this hack
+     * TODO investigate further what's goin' on.
+     */
+    entry->entry_type = NO_STACK_ENTRY_TYPE;
     return where;
 }
 

Reply via email to