comparison src/share/vm/gc_interface/collectedHeap.hpp @ 5972:9a9bb0010c91

7156764: Remove unused size parameter from some CollectedHeap methods Summary: Some minor cleanups Reviewed-by: tonyp, jwilhelm
author brutisso
date Tue, 27 Mar 2012 10:29:59 +0200
parents cc74fa5a91a9
children b632e80fc9dc
comparison
equal deleted inserted replaced
5965:cc74fa5a91a9 5972:9a9bb0010c91
147 // Same as common_mem version, except memory is allocated in the permanent area 147 // Same as common_mem version, except memory is allocated in the permanent area
148 // If there is no permanent area, revert to common_mem_allocate_init 148 // If there is no permanent area, revert to common_mem_allocate_init
149 inline static HeapWord* common_permanent_mem_allocate_init(size_t size, TRAPS); 149 inline static HeapWord* common_permanent_mem_allocate_init(size_t size, TRAPS);
150 150
151 // Helper functions for (VM) allocation. 151 // Helper functions for (VM) allocation.
152 inline static void post_allocation_setup_common(KlassHandle klass, 152 inline static void post_allocation_setup_common(KlassHandle klass, HeapWord* obj);
153 HeapWord* obj, size_t size);
154 inline static void post_allocation_setup_no_klass_install(KlassHandle klass, 153 inline static void post_allocation_setup_no_klass_install(KlassHandle klass,
155 HeapWord* objPtr, 154 HeapWord* objPtr);
156 size_t size); 155
157 156 inline static void post_allocation_setup_obj(KlassHandle klass, HeapWord* obj);
158 inline static void post_allocation_setup_obj(KlassHandle klass,
159 HeapWord* obj, size_t size);
160 157
161 inline static void post_allocation_setup_array(KlassHandle klass, 158 inline static void post_allocation_setup_array(KlassHandle klass,
162 HeapWord* obj, size_t size, 159 HeapWord* obj, int length);
163 int length);
164 160
165 // Clears an allocated object. 161 // Clears an allocated object.
166 inline static void init_obj(HeapWord* obj, size_t size); 162 inline static void init_obj(HeapWord* obj, size_t size);
167 163
168 // Filler object utilities. 164 // Filler object utilities.
366 // method post_allocation_install_obj_klass() is used to install the 362 // method post_allocation_install_obj_klass() is used to install the
367 // klass pointer. 363 // klass pointer.
368 inline static oop permanent_obj_allocate_no_klass_install(KlassHandle klass, 364 inline static oop permanent_obj_allocate_no_klass_install(KlassHandle klass,
369 int size, 365 int size,
370 TRAPS); 366 TRAPS);
371 inline static void post_allocation_install_obj_klass(KlassHandle klass, 367 inline static void post_allocation_install_obj_klass(KlassHandle klass, oop obj);
372 oop obj,
373 int size);
374 inline static oop permanent_array_allocate(KlassHandle klass, int size, int length, TRAPS); 368 inline static oop permanent_array_allocate(KlassHandle klass, int size, int length, TRAPS);
375 369
376 // Raw memory allocation facilities 370 // Raw memory allocation facilities
377 // The obj and array allocate methods are covers for these methods. 371 // The obj and array allocate methods are covers for these methods.
378 // The permanent allocation method should default to mem_allocate if 372 // The permanent allocation method should default to mem_allocate if
662 if (_gc_heap_log != NULL) { 656 if (_gc_heap_log != NULL) {
663 _gc_heap_log->log_heap_after(); 657 _gc_heap_log->log_heap_after();
664 } 658 }
665 } 659 }
666 660
667 // Allocate GCHeapLog during VM startup
668 static void initialize_heap_log();
669
670 // Heap verification 661 // Heap verification
671 virtual void verify(bool allow_dirty, bool silent, VerifyOption option) = 0; 662 virtual void verify(bool allow_dirty, bool silent, VerifyOption option) = 0;
672 663
673 // Non product verification and debugging. 664 // Non product verification and debugging.
674 #ifndef PRODUCT 665 #ifndef PRODUCT