mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
6689523: max heap calculation for compressed oops is off by MaxPermSize
Need to subtract MaxPermSize from the total heap size when determining whether compressed oops is turned on. Reviewed-by: jmasa, jcoomes, kvn
This commit is contained in:
parent
e6afe110b8
commit
aee4bafd9b
3 changed files with 18 additions and 4 deletions
|
@ -138,6 +138,10 @@ class oopDesc {
|
|||
// Need this as public for garbage collection.
|
||||
template <class T> T* obj_field_addr(int offset) const;
|
||||
|
||||
// Oop encoding heap max
|
||||
static const uint64_t OopEncodingHeapMax =
|
||||
(uint64_t(max_juint) + 1) << LogMinObjAlignmentInBytes;
|
||||
|
||||
static bool is_null(oop obj);
|
||||
static bool is_null(narrowOop obj);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue