Skip to content

Commit

Permalink
Let only the GC in the main thread mark PMCNULL since it's shared bet…
Browse files Browse the repository at this point in the history
…ween all threads.
  • Loading branch information
niner committed Dec 9, 2011
1 parent f356ba9 commit 5587496
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gc/gc_gms.c
Expand Up @@ -798,7 +798,8 @@ gc_gms_mark_and_sweep(PARROT_INTERP, UINTVAL flags)
4. Trace root objects. According to "0. Pre-requirements" we will ignore all
"old" objects. All relevant objects are moved into "work_list".
*/
gc_gms_mark_pmc_header(interp, PMCNULL);
if (! interp->thread_data)
gc_gms_mark_pmc_header(interp, PMCNULL);
Parrot_gc_trace_root(interp, NULL, GC_TRACE_FULL);

if (interp->pdb && interp->pdb->debugger)
Expand Down

0 comments on commit 5587496

Please sign in to comment.