1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

skip assertion on multi-ractor

This assertion is not considerred on multi-ractor mdoe.
This commit is contained in:
Koichi Sasada 2020-12-07 11:10:18 +09:00
parent bef3eb5440
commit 8dd03e5cf0

4
gc.c
View file

@ -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",