diff options
author | Koichi Sasada <ko1@atdot.net> | 2020-12-07 11:10:18 +0900 |
---|---|---|
committer | Koichi Sasada <ko1@atdot.net> | 2020-12-07 11:10:18 +0900 |
commit | 8dd03e5cf0d583ffb836cf27be5645a7d88ac736 (patch) | |
tree | 9ab9caef6d2341d4b87c15d671c50712e5ef0af3 /gc.c | |
parent | bef3eb544025cc4bd4c9c7b87a8ffe4966db6faa (diff) |
skip assertion on multi-ractor
This assertion is not considerred on multi-ractor mdoe.
Diffstat (limited to 'gc.c')
-rw-r--r-- | gc.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -7060,7 +7060,9 @@ gc_verify_internal_consistency_(rb_objspace_t *objspace) /* check counters */ - if (!is_lazy_sweeping(heap_eden) && !finalizing) { + if (!is_lazy_sweeping(heap_eden) && + !finalizing && + ruby_single_main_ractor != NULL) { if (objspace_live_slots(objspace) != data.live_object_count) { fprintf(stderr, "heap_pages_final_slots: %"PRIdSIZE", " "objspace->profile.total_freed_objects: %"PRIdSIZE"\n", |