mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 19:14:38 +02:00
6633953: type2aelembytes{T_ADDRESS} should be 8 bytes in 64 bit VM
T_ADDRESS size is defined as 'int' size (4 bytes) but C2 use it for raw pointers and as memory type for StoreP and LoadP nodes. Reviewed-by: jrose
This commit is contained in:
parent
0dd8f3e8c0
commit
9f1a8ede80
18 changed files with 53 additions and 31 deletions
|
@ -105,7 +105,7 @@ LIR_Opr LIR_OprFact::dummy_value_type(ValueType* type) {
|
|||
|
||||
|
||||
LIR_Address::Scale LIR_Address::scale(BasicType type) {
|
||||
int elem_size = type2aelembytes[type];
|
||||
int elem_size = type2aelembytes(type);
|
||||
switch (elem_size) {
|
||||
case 1: return LIR_Address::times_1;
|
||||
case 2: return LIR_Address::times_2;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue