RFR: Let AccessBarrier call directly to inlineable resolve_forwarded

Roman Kennke rkennke at redhat.com
Thu Jul 5 11:00:50 UTC 2018


This is a small cleanup in SBS to call directly to inlineable
SBS::resolve_forwarded().


# HG changeset patch
# User rkennke
# Date 1530788362 -7200
#      Thu Jul 05 12:59:22 2018 +0200
# Node ID 006178c625f2eb806ff9adfef46571caadc31d28
# Parent  4f5549ec27fba316e1b27a857abac5588494074f
Let AccessBarrier call directly to inlineable resolve_forwarded

diff --git a/src/hotspot/share/gc/shenandoah/shenandoahBarrierSet.hpp
b/src/hotspot/share/gc/shenandoah/shenandoahBarrierSet.hpp
--- a/src/hotspot/share/gc/shenandoah/shenandoahBarrierSet.hpp
+++ b/src/hotspot/share/gc/shenandoah/shenandoahBarrierSet.hpp
@@ -165,7 +165,7 @@

     template <typename T>
     static T load_in_heap_at(oop base, ptrdiff_t offset) {
-      base = ShenandoahBarrierSet::barrier_set()->read_barrier(base);
+      base = ShenandoahBarrierSet::resolve_forwarded(base);
       return Raw::template load_at<T>(base, offset);
     }

@@ -222,7 +222,7 @@
     }

     static oop oop_load_in_heap_at(oop base, ptrdiff_t offset) {
-      base = ShenandoahBarrierSet::barrier_set()->read_barrier(base);
+      base = ShenandoahBarrierSet::resolve_forwarded(base);
       oop value = Raw::template oop_load_at<oop>(base, offset);

keep_alive_if_weak(AccessBarrierSupport::resolve_possibly_unknown_oop_ref_strength<decorators>(base,
offset), value);
       return value;



More information about the shenandoah-dev mailing list