Skip to content

Commit

Permalink
Merge pull request #92 from mmtk/mmtk-fix-missing-shared-strbuf
Browse files Browse the repository at this point in the history
Fix missing strbuf
  • Loading branch information
wks authored Sep 12, 2024
2 parents cd5e356 + ca89e44 commit 68d95d7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions string.c
Original file line number Diff line number Diff line change
Expand Up @@ -1671,6 +1671,11 @@ rb_str_tmp_frozen_no_embed_acquire(VALUE orig)
RSTRING(str)->as.heap.ptr = RSTRING(orig)->as.heap.ptr;
RBASIC(str)->flags |= RBASIC(orig)->flags & STR_NOFREE;
RBASIC(orig)->flags &= ~STR_NOFREE;
#if USE_MMTK
if (rb_mmtk_enabled_p()) {
rb_mmtk_str_set_strbuf(str, RSTRING_EXT(orig)->strbuf);
}
#endif
STR_SET_SHARED(orig, str);
}

Expand Down

0 comments on commit 68d95d7

Please sign in to comment.