mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Unpoison freelist to chain
This commit is contained in:
parent
9a17437558
commit
142f154a0a
1 changed files with 1 additions and 0 deletions
1
gc.c
1
gc.c
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue