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:
Matt Valentine-House 2024-11-22 13:30:00 +00:00
parent d61933e503
commit 551be8219e
Notes: git 2024-11-25 13:05:41 +00:00
12 changed files with 294 additions and 9491 deletions

View file

@ -1065,6 +1065,12 @@ generic_ivtbl_no_ractor_check(VALUE obj)
return generic_ivtbl(obj, 0, false);
}
struct st_table *
rb_generic_ivtbl_get(void)
{
return generic_iv_tbl_;
}
int
rb_gen_ivtbl_get(VALUE obj, ID id, struct gen_ivtbl **ivtbl)
{