Skip to content

Commit

Permalink
[pmc] key, task: manual WBs for shift_*, pop_*
Browse files Browse the repository at this point in the history
  • Loading branch information
ZYROz authored and Reini Urban committed May 23, 2014
1 parent 1d8b9be commit eb4e321
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/pmc/key.pmc
Expand Up @@ -224,10 +224,12 @@ chain.

*/

VTABLE PMC *shift_pmc() {
VTABLE PMC *shift_pmc() :manual_wb {
PMC *next_key;

GET_ATTR_next_key(INTERP, SELF, next_key);
PARROT_GC_WRITE_BARRIER(INTERP, SELF);

return next_key;
}

Expand Down
8 changes: 6 additions & 2 deletions src/pmc/task.pmc
Expand Up @@ -326,8 +326,12 @@ Return a proxy for the last shared PMC.

*/

VTABLE PMC *pop_pmc() {
return VTABLE_pop_pmc(interp, PARROT_TASK(SELF)->shared);
VTABLE PMC *pop_pmc() :manual_wb {
PMC *temp;
temp = VTABLE_pop_pmc(interp, PARROT_TASK(SELF)->shared);
PARROT_GC_WRITE_BARRIER(INTERP, SELF);

return temp;
}

/*
Expand Down

0 comments on commit eb4e321

Please sign in to comment.