comparison src/share/vm/gc_implementation/parallelScavenge/psOldGen.hpp @ 3774:c9ca3f51cf41

6994322: Remove the is_tlab and is_noref / is_large_noref parameters from the CollectedHeap Summary: Remove two unused parameters from the mem_allocate() method and update its uses accordingly. Reviewed-by: stefank, johnc
author tonyp
date Thu, 16 Jun 2011 15:51:57 -0400
parents eda9eb483d29
children b632e80fc9dc
comparison
equal deleted inserted replaced
3773:5130fa1b24f1 3774:c9ca3f51cf41
58 const size_t _max_gen_size; 58 const size_t _max_gen_size;
59 59
60 // Used when initializing the _name field. 60 // Used when initializing the _name field.
61 static inline const char* select_name(); 61 static inline const char* select_name();
62 62
63 HeapWord* allocate_noexpand(size_t word_size, bool is_tlab) { 63 HeapWord* allocate_noexpand(size_t word_size) {
64 // We assume the heap lock is held here. 64 // We assume the heap lock is held here.
65 assert(!is_tlab, "Does not support TLAB allocation");
66 assert_locked_or_safepoint(Heap_lock); 65 assert_locked_or_safepoint(Heap_lock);
67 HeapWord* res = object_space()->allocate(word_size); 66 HeapWord* res = object_space()->allocate(word_size);
68 if (res != NULL) { 67 if (res != NULL) {
69 _start_array.allocate_block(res); 68 _start_array.allocate_block(res);
70 } 69 }
87 HeapWord* cas_allocate(size_t word_size) { 86 HeapWord* cas_allocate(size_t word_size) {
88 HeapWord* res = cas_allocate_noexpand(word_size); 87 HeapWord* res = cas_allocate_noexpand(word_size);
89 return (res == NULL) ? expand_and_cas_allocate(word_size) : res; 88 return (res == NULL) ? expand_and_cas_allocate(word_size) : res;
90 } 89 }
91 90
92 HeapWord* expand_and_allocate(size_t word_size, bool is_tlab); 91 HeapWord* expand_and_allocate(size_t word_size);
93 HeapWord* expand_and_cas_allocate(size_t word_size); 92 HeapWord* expand_and_cas_allocate(size_t word_size);
94 void expand(size_t bytes); 93 void expand(size_t bytes);
95 bool expand_by(size_t bytes); 94 bool expand_by(size_t bytes);
96 bool expand_to_reserved(); 95 bool expand_to_reserved();
97 96
162 // Calculating new sizes 161 // Calculating new sizes
163 void resize(size_t desired_free_space); 162 void resize(size_t desired_free_space);
164 163
165 // Allocation. We report all successful allocations to the size policy 164 // Allocation. We report all successful allocations to the size policy
166 // Note that the perm gen does not use this method, and should not! 165 // Note that the perm gen does not use this method, and should not!
167 HeapWord* allocate(size_t word_size, bool is_tlab); 166 HeapWord* allocate(size_t word_size);
168 167
169 // Iteration. 168 // Iteration.
170 void oop_iterate(OopClosure* cl) { object_space()->oop_iterate(cl); } 169 void oop_iterate(OopClosure* cl) { object_space()->oop_iterate(cl); }
171 void object_iterate(ObjectClosure* cl) { object_space()->object_iterate(cl); } 170 void object_iterate(ObjectClosure* cl) { object_space()->object_iterate(cl); }
172 171