--- a/src/hotspot/cpu/x86/c1_MacroAssembler_x86.cpp Thu Jun 21 14:09:43 2018 +0530
+++ b/src/hotspot/cpu/x86/c1_MacroAssembler_x86.cpp Tue Jun 19 13:03:12 2018 -0400
@@ -139,10 +139,9 @@
// Defines obj, preserves var_size_in_bytes
void C1_MacroAssembler::try_allocate(Register obj, Register var_size_in_bytes, int con_size_in_bytes, Register t1, Register t2, Label& slow_case) {
if (UseTLAB) {
- tlab_allocate(obj, var_size_in_bytes, con_size_in_bytes, t1, t2, slow_case);
+ tlab_allocate(noreg, obj, var_size_in_bytes, con_size_in_bytes, t1, t2, slow_case);
} else {
- eden_allocate(obj, var_size_in_bytes, con_size_in_bytes, t1, slow_case);
- incr_allocated_bytes(noreg, var_size_in_bytes, con_size_in_bytes, t1);
+ eden_allocate(noreg, obj, var_size_in_bytes, con_size_in_bytes, t1, slow_case);
}
}