summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
authorAaron Patterson <tenderlove@ruby-lang.org>2021-01-21 11:19:44 -0800
committerAaron Patterson <tenderlove@ruby-lang.org>2021-01-21 11:19:44 -0800
commit32b7dcfb56a417c1d1c354102351fc1825d653bf (patch)
treeb75f09e42160b2b4b71ea85eabe946a25a84b9f7 /gc.c
parent871b4612b07c37a853240228779dc16a64a51227 (diff)
Fix more assumptions about the read barrier
This is a continuation of 0130e17a410d60a10e7041ce98748b8de6946971. We need to always use the read barrier
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/gc.c b/gc.c
index 998f08630e..73f8bcc88a 100644
--- a/gc.c
+++ b/gc.c
@@ -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;
@@ -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;