Mercurial > hg > truffle
comparison src/share/vm/gc_implementation/parallelScavenge/psOldGen.cpp @ 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 | 567c87d484a0 |
children | b632e80fc9dc |
comparison
equal
deleted
inserted
replaced
3773:5130fa1b24f1 | 3774:c9ca3f51cf41 |
---|---|
180 return object_space()->free_in_bytes() + virtual_space()->uncommitted_size(); | 180 return object_space()->free_in_bytes() + virtual_space()->uncommitted_size(); |
181 } | 181 } |
182 | 182 |
183 // Allocation. We report all successful allocations to the size policy | 183 // Allocation. We report all successful allocations to the size policy |
184 // Note that the perm gen does not use this method, and should not! | 184 // Note that the perm gen does not use this method, and should not! |
185 HeapWord* PSOldGen::allocate(size_t word_size, bool is_tlab) { | 185 HeapWord* PSOldGen::allocate(size_t word_size) { |
186 assert_locked_or_safepoint(Heap_lock); | 186 assert_locked_or_safepoint(Heap_lock); |
187 HeapWord* res = allocate_noexpand(word_size, is_tlab); | 187 HeapWord* res = allocate_noexpand(word_size); |
188 | 188 |
189 if (res == NULL) { | 189 if (res == NULL) { |
190 res = expand_and_allocate(word_size, is_tlab); | 190 res = expand_and_allocate(word_size); |
191 } | 191 } |
192 | 192 |
193 // Allocations in the old generation need to be reported | 193 // Allocations in the old generation need to be reported |
194 if (res != NULL) { | 194 if (res != NULL) { |
195 ParallelScavengeHeap* heap = (ParallelScavengeHeap*)Universe::heap(); | 195 ParallelScavengeHeap* heap = (ParallelScavengeHeap*)Universe::heap(); |
197 } | 197 } |
198 | 198 |
199 return res; | 199 return res; |
200 } | 200 } |
201 | 201 |
202 HeapWord* PSOldGen::expand_and_allocate(size_t word_size, bool is_tlab) { | 202 HeapWord* PSOldGen::expand_and_allocate(size_t word_size) { |
203 assert(!is_tlab, "TLAB's are not supported in PSOldGen"); | |
204 expand(word_size*HeapWordSize); | 203 expand(word_size*HeapWordSize); |
205 if (GCExpandToAllocateDelayMillis > 0) { | 204 if (GCExpandToAllocateDelayMillis > 0) { |
206 os::sleep(Thread::current(), GCExpandToAllocateDelayMillis, false); | 205 os::sleep(Thread::current(), GCExpandToAllocateDelayMillis, false); |
207 } | 206 } |
208 return allocate_noexpand(word_size, is_tlab); | 207 return allocate_noexpand(word_size); |
209 } | 208 } |
210 | 209 |
211 HeapWord* PSOldGen::expand_and_cas_allocate(size_t word_size) { | 210 HeapWord* PSOldGen::expand_and_cas_allocate(size_t word_size) { |
212 expand(word_size*HeapWordSize); | 211 expand(word_size*HeapWordSize); |
213 if (GCExpandToAllocateDelayMillis > 0) { | 212 if (GCExpandToAllocateDelayMillis > 0) { |