Author: chromatic
Date: Wed Jan 21 00:18:39 2009
New Revision: 35855
Modified:
trunk/src/sub.c
Log:
[GC] Worked around a spurious segfault-inducing problem in the GC where STRINGs
sometimes get the "Hey, I'm a PMC!" flag set. Somehow r35847 didn't quite do
the trick. This does. Whiteknight and I will track this down -- but no time
before the release.
Modified: trunk/src/sub.c
==============================================================================
--- trunk/src/sub.c (original)
+++ trunk/src/sub.c Wed Jan 21 00:18:39 2009
@@ -118,6 +118,9 @@
for (i = 0; i < ctx->n_regs_used[REGNO_STR]; ++i) {
obj = (PObj *)CTX_REG_STR(ctx, i);
if (obj) {
+ /* work around a mysterious segfault-inducing problem we haven't
+ * yet tracked down */
+ PObj_flag_CLEAR(is_PMC, obj);
PObj_is_string_SET(obj);
pobject_lives(interp, obj);
}