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:
Coleen Phillimore 2008-04-29 19:31:29 -04:00
parent e6afe110b8
commit aee4bafd9b
3 changed files with 18 additions and 4 deletions

View file

@ -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);