ruby-changes:64067
From: Nobuyoshi <ko1@a...>
Date: Thu, 10 Dec 2020 18:20:59 +0900 (JST)
Subject: [ruby-changes:64067] 142f154a0a (master): Unpoison freelist to chain
https://git.ruby-lang.org/ruby.git/commit/?id=142f154a0a From 142f154a0a0863dc48cf767b2d1b5acec0371999 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Thu, 10 Dec 2020 18:16:15 +0900 Subject: Unpoison freelist to chain diff --git a/gc.c b/gc.c index d2e4e7c..c583ed2 100644 --- a/gc.c +++ b/gc.c @@ -2181,6 +2181,7 @@ ractor_cached_freeobj(rb_objspace_t *objspace, rb_ractor_t *cr) https://github.com/ruby/ruby/blob/trunk/gc.c#L2181 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; -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/