We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40c957b commit 83d636fCopy full SHA for 83d636f
vm.c
@@ -3162,8 +3162,6 @@ ruby_vm_destruct(rb_vm_t *vm)
3162
// TODO: Is this ignorable for classext->m_tbl ?
3163
// rb_id_table_free(RCLASS(rb_mRubyVMFrozenCore)->m_tbl);
3164
3165
- rb_shape_free_all();
3166
-
3167
st_free_table(vm->static_ext_inits);
3168
3169
rb_vm_postponed_job_free();
@@ -3222,11 +3220,12 @@ ruby_vm_destruct(rb_vm_t *vm)
3222
3220
ruby_mimfree(vm);
3223
3221
ruby_current_vm_ptr = NULL;
3224
3225
-#if USE_YJIT
3226
if (rb_free_at_exit) {
+ rb_shape_free_all();
+#if USE_YJIT
3227
rb_yjit_free_at_exit();
3228
- }
3229
#endif
+ }
3230
}
3231
RUBY_FREE_LEAVE("vm");
3232
return 0;
0 commit comments