ruby-changes:63985
From: Koichi <ko1@a...>
Date: Mon, 7 Dec 2020 11:30:37 +0900 (JST)
Subject: [ruby-changes:63985] 8dd03e5cf0 (master): skip assertion on multi-ractor
https://git.ruby-lang.org/ruby.git/commit/?id=8dd03e5cf0 From 8dd03e5cf0d583ffb836cf27be5645a7d88ac736 Mon Sep 17 00:00:00 2001 From: Koichi Sasada <ko1@a...> Date: Mon, 7 Dec 2020 11:10:18 +0900 Subject: skip assertion on multi-ractor This assertion is not considerred on multi-ractor mdoe. diff --git a/gc.c b/gc.c index 6f683cb..219c548 100644 --- a/gc.c +++ b/gc.c @@ -7060,7 +7060,9 @@ gc_verify_internal_consistency_(rb_objspace_t *objspace) https://github.com/ruby/ruby/blob/trunk/gc.c#L7060 /* 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", -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/