Skip to content


8311971: SA's uses incorrect computation to read lo…
Browse files Browse the repository at this point in the history
…ng value in the constant pool

Reviewed-by: cjplummer, dholmes, stuefe
  • Loading branch information
ashu-mehra authored and tstuefe committed Jul 19, 2023
1 parent 028068a commit c119037
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -220,11 +220,7 @@ public float getFloatAt(long index){

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) {
Expand Down

1 comment on commit c119037

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.