diff src/share/vm/oops/oop.hpp @ 135:b7268662a986

6689523: max heap calculation for compressed oops is off by MaxPermSize Summary: Need to subtract MaxPermSize from the total heap size when determining whether compressed oops is turned on. Reviewed-by: jmasa, jcoomes, kvn
author coleenp
date Tue, 29 Apr 2008 19:31:29 -0400
parents ba764ed4b6f2
children feeb96a45707 37f87013dfd8
line wrap: on
line diff
--- a/src/share/vm/oops/oop.hpp	Tue Apr 29 11:21:51 2008 -0400
+++ b/src/share/vm/oops/oop.hpp	Tue Apr 29 19:31:29 2008 -0400
@@ -138,6 +138,10 @@
   // 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);