1
0
Fork 0
mirror of https://github.com/rubyjs/mini_racer synced 2023-03-27 23:21:28 -04:00

drop rb_gc_force_recycle use

It's deprecated in Ruby 3.1, and is probably irrelevant compared
to all the existing allocation noise running other Ruby code.
This commit is contained in:
Sam Saffron 2021-12-30 11:36:39 +11:00
parent feb8dc4cbf
commit 8550bb33dc
No known key found for this signature in database
GPG key ID: B9606168D2FFD9F5

View file

@ -1268,7 +1268,6 @@ gvl_ruby_callback(void* data) {
args->GetIsolate()->TerminateExecution();
if (length > 0) {
rb_ary_clear(ruby_args);
rb_gc_force_recycle(ruby_args);
}
return NULL;
}
@ -1291,7 +1290,6 @@ gvl_ruby_callback(void* data) {
if (length > 0) {
rb_ary_clear(ruby_args);
rb_gc_force_recycle(ruby_args);
}
if (IsolateData::Get(args->GetIsolate(), IsolateData::DO_TERMINATE)) {