8224626: Shenandoah: Elide barriers on uncommon traps
authorrkennke
Thu, 23 May 2019 12:12:04 +0200
changeset 55006 377bba651f4e
parent 55005 9b70ebd131b4
child 55007 617e7f0e370d
8224626: Shenandoah: Elide barriers on uncommon traps Reviewed-by: roland, shade
src/hotspot/share/gc/shenandoah/c2/shenandoahSupport.cpp
--- a/src/hotspot/share/gc/shenandoah/c2/shenandoahSupport.cpp	Thu May 23 10:13:29 2019 +0200
+++ b/src/hotspot/share/gc/shenandoah/c2/shenandoahSupport.cpp	Thu May 23 12:12:04 2019 +0200
@@ -3123,7 +3123,11 @@
         break;
       }
       case Op_CallStaticJava: {
-        strength = STRONG;
+        // If it's an deopt-call we don't need barriers because
+        // the LRB will be applied when unpacking the deopt frame.
+        if (n->as_CallStaticJava()->uncommon_trap_request() == 0) {
+          strength = STRONG;
+        }
         break;
       }
       case Op_CallDynamicJava: