mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 16:44:01 +02:00
Unlock freelist before assigning
Co-authored-by: Matthew Draper <matthew@trebex.net>
This commit is contained in:
parent
c1f4bfd41f
commit
d7dad64465
1 changed files with 2 additions and 0 deletions
2
gc.c
2
gc.c
|
@ -5395,7 +5395,9 @@ try_move(rb_objspace_t *objspace, rb_heap_t *heap, struct heap_page *free_page,
|
|||
* full */
|
||||
return false;
|
||||
}
|
||||
asan_unlock_freelist(free_page);
|
||||
free_page->freelist = RANY(dest)->as.free.next;
|
||||
asan_lock_freelist(free_page);
|
||||
|
||||
GC_ASSERT(RB_BUILTIN_TYPE(dest) == T_NONE);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue