Skip to content

Commit

Permalink
Unlock freelist before assigning
Browse files Browse the repository at this point in the history
Co-authored-by: Matthew Draper <matthew@trebex.net>
  • Loading branch information
jhawthorn and matthewd committed Dec 13, 2023
1 parent c1f4bfd commit d7dad64
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gc.c
Expand Up @@ -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);

Expand Down

0 comments on commit d7dad64

Please sign in to comment.