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 b7e9e66 commit 64c1427Copy full SHA for 64c1427
gc/mmtk/mmtk.c
@@ -603,7 +603,13 @@ rb_gc_impl_ractor_cache_free(void *objspace_ptr, void *cache_ptr)
603
604
ccan_list_del(&cache->list_node);
605
606
- MMTK_ASSERT(objspace->live_ractor_cache_count > 1);
+ if (ruby_free_at_exit_p()) {
607
+ MMTK_ASSERT(objspace->live_ractor_cache_count > 0);
608
+ }
609
+ else {
610
+ MMTK_ASSERT(objspace->live_ractor_cache_count > 1);
611
612
+
613
objspace->live_ractor_cache_count--;
614
615
mmtk_destroy_mutator(cache->mutator);
0 commit comments