8311971: SA's ConstantPool.java uses incorrect computation to read long value in the constant pool

Reviewed-by: cjplummer, dholmes, stuefe
This commit is contained in:
Ashutosh Mehra 2023-07-19 14:24:16 +00:00 committed by Thomas Stuefe
parent 028068a655
commit c1190375fc

@ -220,11 +220,7 @@ public class ConstantPool extends Metadata implements ClassConstants {
}
public long getLongAt(long index) {
int oneHalf = getAddress().getJIntAt(indexOffset(index + 1));
int otherHalf = getAddress().getJIntAt(indexOffset(index));
// buildLongFromIntsPD accepts higher address value, lower address value
// in that order.
return VM.getVM().buildLongFromIntsPD(oneHalf, otherHalf);
return getAddress().getJLongAt(indexOffset(index));
}
public double getDoubleAt(long index) {