Skip to content

Commit

Permalink
Fix more assumptions about the read barrier
Browse files Browse the repository at this point in the history
This is a continuation of 0130e17.  We
need to always use the read barrier
  • Loading branch information
tenderlove committed Jan 21, 2021
1 parent 871b461 commit 32b7dcf
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions gc.c
Original file line number Diff line number Diff line change
Expand Up @@ -4489,11 +4489,6 @@ static VALUE gc_move(rb_objspace_t *objspace, VALUE scan, VALUE free);
static void
lock_page_body(rb_objspace_t *objspace, struct heap_page_body *body)
{
/* If this is an explicit compaction (GC.compact), we don't need a read
* barrier, so just return early. */
if (objspace->flags.during_compacting >> 1) {
return;
}
#if defined(_WIN32)
DWORD old_protect;

Expand All @@ -4511,11 +4506,6 @@ lock_page_body(rb_objspace_t *objspace, struct heap_page_body *body)
static void
unlock_page_body(rb_objspace_t *objspace, struct heap_page_body *body)
{
/* If this is an explicit compaction (GC.compact), we don't need a read
* barrier, so just return early. */
if (objspace->flags.during_compacting >> 1) {
return;
}
#if defined(_WIN32)
DWORD old_protect;

Expand Down

0 comments on commit 32b7dcf

Please sign in to comment.