diff src/cpu/sparc/vm/templateTable_sparc.cpp @ 2127:5577848f5923

7011463: Sparc MacroAssembler::incr_allocated_bytes() needs a RegisterOrConstant argument Summary: Replaced incr_allocated_bytes() formals var_size_in_bytes and con_size_in_bytes with a single RegisterOrConstant formal. Reviewed-by: twisti, jcoomes
author phh
date Tue, 11 Jan 2011 17:33:21 -0500
parents b1a2afa37ec4
children 856ecff79cf7
line wrap: on
line diff
--- a/src/cpu/sparc/vm/templateTable_sparc.cpp	Mon Jan 10 17:14:53 2011 -0500
+++ b/src/cpu/sparc/vm/templateTable_sparc.cpp	Tue Jan 11 17:33:21 2011 -0500
@@ -3447,7 +3447,8 @@
     __ delayed()->nop();
 
     // bump total bytes allocated by this thread
-    __ incr_allocated_bytes(Roffset, 0, G1_scratch);
+    // RoldTopValue and RtopAddr are dead, so can use G1 and G3
+    __ incr_allocated_bytes(Roffset, G1_scratch, G3_scratch);
   }
 
   if (UseTLAB || Universe::heap()->supports_inline_contig_alloc()) {