Permalink
Browse files

[GC] Worked around a spurious segfault-inducing problem in the GC whe…

…re 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.

git-svn-id: https://svn.parrot.org/parrot/trunk@35855 d31e2699-5ff4-0310-a27c-f18f2fbe73fe
  • Loading branch information...
1 parent a750d09 commit 00cfce7eb3928bcab0c714479292434ec9663034 @chromatic chromatic committed Jan 21, 2009
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/sub.c
View
@@ -118,6 +118,9 @@ mark_context(PARROT_INTERP, ARGMOD(Parrot_Context* ctx))
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);
}

0 comments on commit 00cfce7

Please sign in to comment.