summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
authorMatt Valentine-House <[email protected]>2024-11-22 13:30:00 +0000
committerMatt Valentine-House <[email protected]>2024-11-25 13:05:23 +0000
commit551be8219e8a4c5b0021716b047976d66feb3048 (patch)
treed4bf84657e5efa851bcf47996c18e717f0da41a0 /string.c
parentd61933e5034248febeb22c18cb779c9348d2444e (diff)
Place all non-default GC API behind USE_SHARED_GC
So that it doesn't get included in the generated binaries for builds that don't support loading shared GC modules Co-Authored-By: Peter Zhu <[email protected]>
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/12149
Diffstat (limited to 'string.c')
-rw-r--r--string.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/string.c b/string.c
index d20bcbde95..0fd1c59a90 100644
--- a/string.c
+++ b/string.c
@@ -1676,17 +1676,6 @@ rb_str_tmp_new(long len)
void
rb_str_free(VALUE str)
{
- if (FL_TEST(str, RSTRING_FSTR)) {
- st_data_t fstr = (st_data_t)str;
-
- RB_VM_LOCK_ENTER();
- {
- st_delete(rb_vm_fstring_table(), &fstr, NULL);
- RB_DEBUG_COUNTER_INC(obj_str_fstr);
- }
- RB_VM_LOCK_LEAVE();
- }
-
if (STR_EMBED_P(str)) {
RB_DEBUG_COUNTER_INC(obj_str_embed);
}