diff --git a/lib/cext/ABI_check.txt b/lib/cext/ABI_check.txt index 00750edc07d6..b8626c4cff28 100644 --- a/lib/cext/ABI_check.txt +++ b/lib/cext/ABI_check.txt @@ -1 +1 @@ -3 +4 diff --git a/src/main/c/cext/gc.c b/src/main/c/cext/gc.c index 703aa3657b81..f1b7d233f2d7 100644 --- a/src/main/c/cext/gc.c +++ b/src/main/c/cext/gc.c @@ -38,8 +38,7 @@ void rb_gc_mark_locations(const VALUE *start, const VALUE *end) { VALUE *value = start; while (value < end) { - rb_gc_mark(*value); - polyglot_invoke(RUBY_CEXT, "rb_gc_mark_maybe", *value); + rb_gc_mark_maybe(*value); value++; } }