1.1 --- a/src/cpu/sparc/vm/c1_Runtime1_sparc.cpp Fri Jan 07 03:38:19 2011 -0800 1.2 +++ b/src/cpu/sparc/vm/c1_Runtime1_sparc.cpp Fri Jan 07 10:42:32 2011 -0500 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved. 1.6 + * Copyright (c) 1999, 2011, Oracle and/or its affiliates. All rights reserved. 1.7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.8 * 1.9 * This code is free software; you can redistribute it and/or modify it 1.10 @@ -448,7 +448,9 @@ 1.11 1.12 // get the instance size 1.13 __ ld(G5_klass, klassOopDesc::header_size() * HeapWordSize + Klass::layout_helper_offset_in_bytes(), G1_obj_size); 1.14 + 1.15 __ tlab_allocate(O0_obj, G1_obj_size, 0, G3_t1, slow_path); 1.16 + 1.17 __ initialize_object(O0_obj, G5_klass, G1_obj_size, 0, G3_t1, G4_t2); 1.18 __ verify_oop(O0_obj); 1.19 __ mov(O0, I0); 1.20 @@ -459,6 +461,8 @@ 1.21 // get the instance size 1.22 __ ld(G5_klass, klassOopDesc::header_size() * HeapWordSize + Klass::layout_helper_offset_in_bytes(), G1_obj_size); 1.23 __ eden_allocate(O0_obj, G1_obj_size, 0, G3_t1, G4_t2, slow_path); 1.24 + __ incr_allocated_bytes(G1_obj_size, 0, G3_t1); 1.25 + 1.26 __ initialize_object(O0_obj, G5_klass, G1_obj_size, 0, G3_t1, G4_t2); 1.27 __ verify_oop(O0_obj); 1.28 __ mov(O0, I0); 1.29 @@ -573,6 +577,7 @@ 1.30 __ and3(G1_arr_size, ~MinObjAlignmentInBytesMask, G1_arr_size); 1.31 1.32 __ eden_allocate(O0_obj, G1_arr_size, 0, G3_t1, O1_t2, slow_path); // preserves G1_arr_size 1.33 + __ incr_allocated_bytes(G1_arr_size, 0, G3_t1); 1.34 1.35 __ initialize_header(O0_obj, G5_klass, G4_length, G3_t1, O1_t2); 1.36 __ ldub(klass_lh, G3_t1, klass_lh_header_size_offset);