src/cpu/sparc/vm/c1_MacroAssembler_sparc.cpp

changeset 2447
5577848f5923
parent 2423
b1a2afa37ec4
child 2708
1d1603768966
child 2746
d86923d96dca
     1.1 --- a/src/cpu/sparc/vm/c1_MacroAssembler_sparc.cpp	Mon Jan 10 17:14:53 2011 -0500
     1.2 +++ b/src/cpu/sparc/vm/c1_MacroAssembler_sparc.cpp	Tue Jan 11 17:33:21 2011 -0500
     1.3 @@ -170,11 +170,13 @@
     1.4    Register t2,                         // temp register
     1.5    Label&   slow_case                   // continuation point if fast allocation fails
     1.6  ) {
     1.7 +  RegisterOrConstant size_in_bytes = var_size_in_bytes->is_valid()
     1.8 +    ? RegisterOrConstant(var_size_in_bytes) : RegisterOrConstant(con_size_in_bytes);
     1.9    if (UseTLAB) {
    1.10      tlab_allocate(obj, var_size_in_bytes, con_size_in_bytes, t1, slow_case);
    1.11    } else {
    1.12      eden_allocate(obj, var_size_in_bytes, con_size_in_bytes, t1, t2, slow_case);
    1.13 -    incr_allocated_bytes(var_size_in_bytes, con_size_in_bytes, t1);
    1.14 +    incr_allocated_bytes(size_in_bytes, t1, t2);
    1.15    }
    1.16  }
    1.17  

mercurial