mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
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 <peter@peterzhu.ca>
This commit is contained in:
parent
d61933e503
commit
551be8219e
Notes:
git
2024-11-25 13:05:41 +00:00
12 changed files with 294 additions and 9491 deletions
11
string.c
11
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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue