mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 03:24:38 +02:00
7011463: Sparc MacroAssembler::incr_allocated_bytes() needs a RegisterOrConstant argument
Replaced incr_allocated_bytes() formals var_size_in_bytes and con_size_in_bytes with a single RegisterOrConstant formal. Reviewed-by: twisti, jcoomes
This commit is contained in:
parent
ae65c6240f
commit
6931aa0a24
5 changed files with 14 additions and 15 deletions
|
@ -170,11 +170,13 @@ void C1_MacroAssembler::try_allocate(
|
|||
Register t2, // temp register
|
||||
Label& slow_case // continuation point if fast allocation fails
|
||||
) {
|
||||
RegisterOrConstant size_in_bytes = var_size_in_bytes->is_valid()
|
||||
? RegisterOrConstant(var_size_in_bytes) : RegisterOrConstant(con_size_in_bytes);
|
||||
if (UseTLAB) {
|
||||
tlab_allocate(obj, var_size_in_bytes, con_size_in_bytes, t1, slow_case);
|
||||
} else {
|
||||
eden_allocate(obj, var_size_in_bytes, con_size_in_bytes, t1, t2, slow_case);
|
||||
incr_allocated_bytes(var_size_in_bytes, con_size_in_bytes, t1);
|
||||
incr_allocated_bytes(size_in_bytes, t1, t2);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue