8310510: Remove WordsPerLong
Reviewed-by: mdoerr
This commit is contained in:
parent
31dcda5d67
commit
d6685f0869
@ -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() {
|
||||
|
@ -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() {
|
||||
|
@ -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*);
|
||||
|
Loading…
Reference in New Issue
Block a user