1.1 --- a/src/cpu/sparc/vm/c1_Runtime1_sparc.cpp Mon Jan 10 17:14:53 2011 -0500 1.2 +++ b/src/cpu/sparc/vm/c1_Runtime1_sparc.cpp Tue Jan 11 17:33:21 2011 -0500 1.3 @@ -461,7 +461,7 @@ 1.4 // get the instance size 1.5 __ ld(G5_klass, klassOopDesc::header_size() * HeapWordSize + Klass::layout_helper_offset_in_bytes(), G1_obj_size); 1.6 __ eden_allocate(O0_obj, G1_obj_size, 0, G3_t1, G4_t2, slow_path); 1.7 - __ incr_allocated_bytes(G1_obj_size, 0, G3_t1); 1.8 + __ incr_allocated_bytes(G1_obj_size, G3_t1, G4_t2); 1.9 1.10 __ initialize_object(O0_obj, G5_klass, G1_obj_size, 0, G3_t1, G4_t2); 1.11 __ verify_oop(O0_obj); 1.12 @@ -577,7 +577,7 @@ 1.13 __ and3(G1_arr_size, ~MinObjAlignmentInBytesMask, G1_arr_size); 1.14 1.15 __ eden_allocate(O0_obj, G1_arr_size, 0, G3_t1, O1_t2, slow_path); // preserves G1_arr_size 1.16 - __ incr_allocated_bytes(G1_arr_size, 0, G3_t1); 1.17 + __ incr_allocated_bytes(G1_arr_size, G3_t1, O1_t2); 1.18 1.19 __ initialize_header(O0_obj, G5_klass, G4_length, G3_t1, O1_t2); 1.20 __ ldub(klass_lh, G3_t1, klass_lh_header_size_offset);