< prev index next >

src/hotspot/cpu/arm/jniFastGetField_arm.cpp

Print this page

        

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 2008, 2017, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2008, 2018, Oracle and/or its affiliates. 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
  * under the terms of the GNU General Public License version 2 only, as
  * published by the Free Software Foundation.

@@ -125,17 +125,13 @@
   __ andr(R1, R1, ~JNIHandles::weak_tag_mask);
 #else
   __ bic(R1, R1, JNIHandles::weak_tag_mask);
 #endif
 
-  if (os::is_MP()) {
     // Address dependency restricts memory access ordering. It's cheaper than explicit LoadLoad barrier
     __ andr(Rtmp1, Rsafept_cnt, (unsigned)1);
     __ ldr(Robj, Address(R1, Rtmp1));
-  } else {
-    __ ldr(Robj, Address(R1));
-  }
 
 #ifdef AARCH64
   __ add(Robj, Robj, AsmOperand(R2, lsr, 2));
   Address field_addr = Address(Robj);
 #else

@@ -196,11 +192,10 @@
 #endif // __ABI_HARD__
     default:
       ShouldNotReachHere();
   }
 
-  if(os::is_MP()) {
       // Address dependency restricts memory access ordering. It's cheaper than explicit LoadLoad barrier
 #if defined(__ABI_HARD__) && !defined(AARCH64)
     if (type == T_FLOAT || type == T_DOUBLE) {
       __ ldr_literal(Rsafepoint_counter_addr, safepoint_counter_addr);
       __ fmrrd(Rres, Rres_hi, D0);

@@ -213,13 +208,10 @@
       __ ldr_literal(Rsafepoint_counter_addr, safepoint_counter_addr);
 #endif // !AARCH64
       __ eor(Rtmp2, Rres, Rres);
       __ ldr_s32(Rsafept_cnt2, Address(Rsafepoint_counter_addr, Rtmp2));
     }
-  } else {
-    __ ldr_s32(Rsafept_cnt2, Address(Rsafepoint_counter_addr));
-  }
   __ cmp(Rsafept_cnt2, Rsafept_cnt);
 #ifdef AARCH64
   __ b(slow_case, ne);
   __ mov(R0, Rres);
   __ ret();
< prev index next >