Mercurial > hg > truffle
comparison 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 |
comparison
equal
deleted
inserted
replaced
134:8a79f7ec8f5d | 135:b7268662a986 |
---|---|
136 | 136 |
137 public: | 137 public: |
138 // Need this as public for garbage collection. | 138 // Need this as public for garbage collection. |
139 template <class T> T* obj_field_addr(int offset) const; | 139 template <class T> T* obj_field_addr(int offset) const; |
140 | 140 |
141 // Oop encoding heap max | |
142 static const uint64_t OopEncodingHeapMax = | |
143 (uint64_t(max_juint) + 1) << LogMinObjAlignmentInBytes; | |
144 | |
141 static bool is_null(oop obj); | 145 static bool is_null(oop obj); |
142 static bool is_null(narrowOop obj); | 146 static bool is_null(narrowOop obj); |
143 | 147 |
144 // Decode an oop pointer from a narrowOop if compressed. | 148 // Decode an oop pointer from a narrowOop if compressed. |
145 // These are overloaded for oop and narrowOop as are the other functions | 149 // These are overloaded for oop and narrowOop as are the other functions |