Skip to content

Commit

Permalink
add assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
eileencodes committed Aug 14, 2024
1 parent 7c67df1 commit 542366b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gc.c
Original file line number Diff line number Diff line change
Expand Up @@ -10466,6 +10466,7 @@ rb_mmtk_gc_ref_update_string(rb_objspace_t * objspace, VALUE str)
if (RSTRING_LEN(str) == 941) {
fprintf(stderr, "marking %p\n", RSTRING(str)->as.heap.ptr);
}
GC_ASSERT(RSTRING_EXT(str)->strbuf);
// Otherwise the RSTRING_EXT(obj)->strbuf field always points to the underlying imemo:mmtk_strbuf.
VALUE old_strbuf = RSTRING_EXT(str)->strbuf;
UPDATE_IF_MOVED(objspace, RSTRING_EXT(str)->strbuf);
Expand Down

0 comments on commit 542366b

Please sign in to comment.