Skip to content

Commit

Permalink
8312232: Remove sun.jvm.hotspot.runtime.VM.buildLongFromIntsPD()
Browse files Browse the repository at this point in the history
Reviewed-by: lmesnik, kevinw
  • Loading branch information
plummercj committed Aug 22, 2023
1 parent 2eae13c commit 7c169a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2001, 2022, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2001, 2023, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -47,8 +47,6 @@ public class StackValueCollection {
public char charAt(int slot) { return (char) get(slot).getInteger(); }
public short shortAt(int slot) { return (short) get(slot).getInteger(); }
public int intAt(int slot) { return (int) get(slot).getInteger(); }
public long longAt(int slot) { return VM.getVM().buildLongFromIntsPD((int) get(slot).getInteger(),
(int) get(slot+1).getInteger()); }

public OopHandle oopHandleAt(int slot) {
StackValue sv = get(slot);
Expand All @@ -59,5 +57,4 @@ public OopHandle oopHandleAt(int slot) {
}

public float floatAt(int slot) { return Float.intBitsToFloat(intAt(slot)); }
public double doubleAt(int slot) { return Double.longBitsToDouble(longAt(slot)); }
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2000, 2022, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2000, 2023, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -727,16 +727,6 @@ public int buildIntFromShorts(short low, short high) {
return (((int) high) << 16) | (((int) low) & 0xFFFF);
}

/** Utility routine for building a long from two "unsigned" 32-bit
ints in <b>platform-dependent</b> order */
public long buildLongFromIntsPD(int oneHalf, int otherHalf) {
if (isBigEndian) {
return (((long) otherHalf) << 32) | (((long) oneHalf) & 0x00000000FFFFFFFFL);
} else{
return (((long) oneHalf) << 32) | (((long) otherHalf) & 0x00000000FFFFFFFFL);
}
}

public TypeDataBase getTypeDataBase() {
return db;
}
Expand Down

1 comment on commit 7c169a4

@openjdk-notifier
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.