summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Patterson <tenderlove@ruby-lang.org>2020-11-05 12:27:09 -0800
committerAaron Patterson <tenderlove@ruby-lang.org>2020-11-05 12:27:09 -0800
commitd8da5c198348eac3d3d7a3e13dfb8a9351ed07ae (patch)
tree4fa900f7e511c174f3da55675bdf8f1d6eabcad0
parentab5f2fa4fb5b89a71080cd51e192a3882696fe04 (diff)
add asserts to find crash
-rw-r--r--gc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gc.c b/gc.c
index a80d9fc1bb..a5f99e5e3d 100644
--- a/gc.c
+++ b/gc.c
@@ -8524,10 +8524,10 @@ gc_sort_heap_by_empty_slots(rb_objspace_t *objspace)
list_for_each(&heap_eden->pages, page, page_node) {
page_list[i++] = page;
- GC_ASSERT(page != NULL);
+ assert(page != NULL);
}
- GC_ASSERT(total_pages > 0);
- GC_ASSERT((size_t)i == total_pages);
+ assert(total_pages > 0);
+ assert((size_t)i == total_pages);
/* Sort the heap so "filled pages" are first. `heap_add_page` adds to the
* head of the list, so empty pages will end up at the start of the heap */