comparison src/share/vm/memory/universe.hpp @ 113:ba764ed4b6f2

6420645: Create a vm that uses compressed oops for up to 32gb heapsizes Summary: Compressed oops in instances, arrays, and headers. Code contributors are coleenp, phh, never, swamyv Reviewed-by: jmasa, kamg, acorn, tbell, kvn, rasbold
author coleenp
date Sun, 13 Apr 2008 17:43:42 -0400
parents a61af66fc99e
children d1605aabd0a1
comparison
equal deleted inserted replaced
110:a49a647afe9a 113:ba764ed4b6f2
178 178
179 static oop _emptySymbol; // Canonical empty string ("") symbol 179 static oop _emptySymbol; // Canonical empty string ("") symbol
180 180
181 // The particular choice of collected heap. 181 // The particular choice of collected heap.
182 static CollectedHeap* _collectedHeap; 182 static CollectedHeap* _collectedHeap;
183 // Base address for oop-within-java-object materialization.
184 // NULL if using wide oops. Doubles as heap oop null value.
185 static address _heap_base;
183 186
184 // array of dummy objects used with +FullGCAlot 187 // array of dummy objects used with +FullGCAlot
185 debug_only(static objArrayOop _fullgc_alot_dummy_array;) 188 debug_only(static objArrayOop _fullgc_alot_dummy_array;)
186 // index of next entry to clear 189 // index of next entry to clear
187 debug_only(static int _fullgc_alot_dummy_next;) 190 debug_only(static int _fullgc_alot_dummy_next;)
188 191
189 // Compiler/dispatch support 192 // Compiler/dispatch support
190 static int _base_vtable_size; // Java vtbl size of klass Object (in words) 193 static int _base_vtable_size; // Java vtbl size of klass Object (in words)
191 194
321 static klassOop* doubleArrayKlassObj_addr() { return &_doubleArrayKlassObj; } 324 static klassOop* doubleArrayKlassObj_addr() { return &_doubleArrayKlassObj; }
322 325
323 // The particular choice of collected heap. 326 // The particular choice of collected heap.
324 static CollectedHeap* heap() { return _collectedHeap; } 327 static CollectedHeap* heap() { return _collectedHeap; }
325 328
329 // For UseCompressedOops
330 static address heap_base() { return _heap_base; }
331 static address* heap_base_addr() { return &_heap_base; }
332
326 // Historic gc information 333 // Historic gc information
327 static size_t get_heap_capacity_at_last_gc() { return _heap_capacity_at_last_gc; } 334 static size_t get_heap_capacity_at_last_gc() { return _heap_capacity_at_last_gc; }
328 static size_t get_heap_free_at_last_gc() { return _heap_capacity_at_last_gc - _heap_used_at_last_gc; } 335 static size_t get_heap_free_at_last_gc() { return _heap_capacity_at_last_gc - _heap_used_at_last_gc; }
329 static size_t get_heap_used_at_last_gc() { return _heap_used_at_last_gc; } 336 static size_t get_heap_used_at_last_gc() { return _heap_used_at_last_gc; }
330 static void update_heap_info_at_gc(); 337 static void update_heap_info_at_gc();