hotspot/src/cpu/ppc/vm/templateTable_ppc_64.cpp
changeset 46487 f8e5223d1501
parent 46427 54713555867e
child 46615 3fd9b25850f4
--- a/hotspot/src/cpu/ppc/vm/templateTable_ppc_64.cpp	Fri Apr 28 14:34:24 2017 +0200
+++ b/hotspot/src/cpu/ppc/vm/templateTable_ppc_64.cpp	Tue May 09 16:48:31 2017 +0200
@@ -3720,7 +3720,7 @@
       __ bge(CCR0, Lslow_case);
 
       // Increment waste limit to prevent getting stuck on this slow path.
-      __ addi(RtlabWasteLimitValue, RtlabWasteLimitValue, (int)ThreadLocalAllocBuffer::refill_waste_limit_increment());
+      __ add_const_optimized(RtlabWasteLimitValue, RtlabWasteLimitValue, ThreadLocalAllocBuffer::refill_waste_limit_increment());
       __ std(RtlabWasteLimitValue, in_bytes(JavaThread::tlab_refill_waste_limit_offset()), R16_thread);
     }
     // else: No allocation in the shared eden. // fallthru: __ b(Lslow_case);