src/hotspot/share/gc/shared/c1/barrierSetC1.cpp
changeset 50728 9375184cec98
parent 49906 4bb58f644e4e
child 51408 59269a19f108
--- a/src/hotspot/share/gc/shared/c1/barrierSetC1.cpp	Fri Jun 22 16:06:43 2018 -0400
+++ b/src/hotspot/share/gc/shared/c1/barrierSetC1.cpp	Fri Jun 22 17:46:58 2018 -0400
@@ -40,7 +40,7 @@
 
 LIR_Opr BarrierSetC1::resolve_address(LIRAccess& access, bool resolve_in_register) {
   DecoratorSet decorators = access.decorators();
-  bool on_array = (decorators & IN_HEAP_ARRAY) != 0;
+  bool is_array = (decorators & IS_ARRAY) != 0;
   bool needs_patching = (decorators & C1_NEEDS_PATCHING) != 0;
 
   LIRItem& base = access.base().item();
@@ -48,7 +48,7 @@
   LIRGenerator *gen = access.gen();
 
   LIR_Opr addr_opr;
-  if (on_array) {
+  if (is_array) {
     addr_opr = LIR_OprFact::address(gen->emit_array_address(base.result(), offset, access.type()));
   } else if (needs_patching) {
     // we need to patch the offset in the instruction so don't allow