1
0
Fork 0
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:
Nobuyoshi Nakada 2020-12-10 18:16:15 +09:00
parent 9a17437558
commit 142f154a0a
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

1
gc.c
View file

@ -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;