Skip to content

Commit

Permalink
Unpoison freelist to chain
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Dec 10, 2020
1 parent 9a17437 commit 142f154
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gc.c
Expand Up @@ -2181,6 +2181,7 @@ ractor_cached_freeobj(rb_objspace_t *objspace, rb_ractor_t *cr)
else {
if (cr->newobj_cache.free_pages) {
struct heap_page *page = cr->newobj_cache.free_pages;
asan_unpoison_memory_region(&page->freelist, sizeof(RVALUE*), false);
cr->newobj_cache.free_pages = page->free_next;
ractor_cache_fill_freelist(objspace, cr, page);
goto retry;
Expand Down

0 comments on commit 142f154

Please sign in to comment.