Skip to content

Commit 2255560

Browse files
committed
Fix write barrier in updating method_cache
1 parent 5c5b494 commit 2255560

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ops/nqp.ops

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ inline op publish_method_cache(in PMC, in PMC) :base_core {
322322
VTABLE_set_pmc_keyed_str(interp, cache, name, meth);
323323
}
324324
target_st->method_cache = cache;
325-
PARROT_GC_WRITE_BARRIER(interp, $1);
325+
PARROT_GC_WRITE_BARRIER(interp, STABLE_PMC($1));
326326
}
327327
else {
328328
Parrot_ex_throw_from_c_args(interp, NULL, EXCEPTION_INVALID_OPERATION,

0 commit comments

Comments
 (0)