changeset 57804:36218eab4255

8234399: Shenandoah: Cleanup native load barrier Reviewed-by: rkennke
author zgu
date Wed, 22 Jan 2020 20:07:49 -0500
parents 2c577689f3c8
children ccf562b9b63c
files src/hotspot/share/gc/shenandoah/shenandoahBarrierSet.cpp
diffstat 1 files changed, 2 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/src/hotspot/share/gc/shenandoah/shenandoahBarrierSet.cpp	Wed Jan 22 15:32:51 2020 -0800
+++ b/src/hotspot/share/gc/shenandoah/shenandoahBarrierSet.cpp	Wed Jan 22 20:07:49 2020 -0500
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013, 2019, Red Hat, Inc. All rights reserved.
+ * Copyright (c) 2013, 2020, Red Hat, Inc. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -260,12 +260,7 @@
 
   ShenandoahMarkingContext* const marking_context = _heap->marking_context();
   if (_heap->is_concurrent_root_in_progress() && !marking_context->is_marked(obj)) {
-    Thread* thr = Thread::current();
-    if (thr->is_Java_thread()) {
-      return NULL;
-    } else {
-      return obj;
-    }
+    return NULL;
   }
 
   oop fwd = load_reference_barrier_not_null(obj);
@@ -282,4 +277,3 @@
     clone_barrier(src);
   }
 }
-