Skip to content

Commit 68d95d7

Browse files
authored
Merge pull request #92 from mmtk/mmtk-fix-missing-shared-strbuf
Fix missing strbuf
2 parents cd5e356 + ca89e44 commit 68d95d7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: string.c

+5
Original file line numberDiff line numberDiff line change
@@ -1671,6 +1671,11 @@ rb_str_tmp_frozen_no_embed_acquire(VALUE orig)
16711671
RSTRING(str)->as.heap.ptr = RSTRING(orig)->as.heap.ptr;
16721672
RBASIC(str)->flags |= RBASIC(orig)->flags & STR_NOFREE;
16731673
RBASIC(orig)->flags &= ~STR_NOFREE;
1674+
#if USE_MMTK
1675+
if (rb_mmtk_enabled_p()) {
1676+
rb_mmtk_str_set_strbuf(str, RSTRING_EXT(orig)->strbuf);
1677+
}
1678+
#endif
16741679
STR_SET_SHARED(orig, str);
16751680
}
16761681

0 commit comments

Comments
 (0)