8310510: Remove WordsPerLong

Reviewed-by: mdoerr
This commit is contained in:
Thomas Stuefe 2023-06-23 10:07:32 +00:00
parent 31dcda5d67
commit d6685f0869
3 changed files with 2 additions and 8 deletions

View File

@ -245,9 +245,7 @@ inline intptr_t* frame::interpreter_frame_tos_address() const {
}
inline int frame::interpreter_frame_monitor_size() {
// Number of stack slots for a monitor.
return align_up(BasicObjectLock::size(), // number of stack slots
WordsPerLong); // number of stack slots for a Java long
return BasicObjectLock::size();
}
inline int frame::interpreter_frame_monitor_size_in_bytes() {

View File

@ -249,9 +249,7 @@ inline void frame::interpreter_frame_set_monitor_end(BasicObjectLock* monitors)
}
inline int frame::interpreter_frame_monitor_size() {
// Number of stack slots for a monitor
return align_up(BasicObjectLock::size() /* number of stack slots */,
WordsPerLong /* Number of stack slots for a Java long. */);
return BasicObjectLock::size();
}
inline int frame::interpreter_frame_monitor_size_in_bytes() {

View File

@ -243,8 +243,6 @@ const int BitsPerLong = 1 << LogBitsPerLong;
const int WordAlignmentMask = (1 << LogBytesPerWord) - 1;
const int LongAlignmentMask = (1 << LogBytesPerLong) - 1;
const int WordsPerLong = 2; // Number of stack entries for longs
const int oopSize = sizeof(char*); // Full-width oop
extern int heapOopSize; // Oop within a java object
const int wordSize = sizeof(char*);