Mercurial > hg > truffle
comparison src/share/vm/oops/oop.hpp @ 1571:2d127394260e
6916623: Align object to 16 bytes to use Compressed Oops with java heap up to 64Gb
Summary: Added new product ObjectAlignmentInBytes flag to control object alignment.
Reviewed-by: twisti, ysr, iveresov
author | kvn |
---|---|
date | Thu, 27 May 2010 18:01:56 -0700 |
parents | 167c2986d91b |
children | e9ff18c4ace7 |
comparison
equal
deleted
inserted
replaced
1570:de91a2f25c7e | 1571:2d127394260e |
---|---|
147 | 147 |
148 public: | 148 public: |
149 // Need this as public for garbage collection. | 149 // Need this as public for garbage collection. |
150 template <class T> T* obj_field_addr(int offset) const; | 150 template <class T> T* obj_field_addr(int offset) const; |
151 | 151 |
152 // Oop encoding heap max | |
153 static const uint64_t OopEncodingHeapMax = | |
154 (uint64_t(max_juint) + 1) << LogMinObjAlignmentInBytes; | |
155 | |
156 static bool is_null(oop obj); | 152 static bool is_null(oop obj); |
157 static bool is_null(narrowOop obj); | 153 static bool is_null(narrowOop obj); |
158 | 154 |
159 // Decode an oop pointer from a narrowOop if compressed. | 155 // Decode an oop pointer from a narrowOop if compressed. |
160 // These are overloaded for oop and narrowOop as are the other functions | 156 // These are overloaded for oop and narrowOop as are the other functions |