mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 19:14:38 +02:00
6994322: Remove the is_tlab and is_noref / is_large_noref parameters from the CollectedHeap
Remove two unused parameters from the mem_allocate() method and update its uses accordingly. Reviewed-by: stefank, johnc
This commit is contained in:
parent
43d9e95a42
commit
937d6ded89
17 changed files with 55 additions and 131 deletions
|
@ -434,11 +434,9 @@ HeapWord* GenCollectedHeap::attempt_allocation(size_t size,
|
|||
}
|
||||
|
||||
HeapWord* GenCollectedHeap::mem_allocate(size_t size,
|
||||
bool is_large_noref,
|
||||
bool is_tlab,
|
||||
bool* gc_overhead_limit_was_exceeded) {
|
||||
return collector_policy()->mem_allocate_work(size,
|
||||
is_tlab,
|
||||
false /* is_tlab */,
|
||||
gc_overhead_limit_was_exceeded);
|
||||
}
|
||||
|
||||
|
@ -1120,11 +1118,9 @@ size_t GenCollectedHeap::unsafe_max_tlab_alloc(Thread* thr) const {
|
|||
|
||||
HeapWord* GenCollectedHeap::allocate_new_tlab(size_t size) {
|
||||
bool gc_overhead_limit_was_exceeded;
|
||||
HeapWord* result = mem_allocate(size /* size */,
|
||||
false /* is_large_noref */,
|
||||
true /* is_tlab */,
|
||||
&gc_overhead_limit_was_exceeded);
|
||||
return result;
|
||||
return collector_policy()->mem_allocate_work(size /* size */,
|
||||
true /* is_tlab */,
|
||||
&gc_overhead_limit_was_exceeded);
|
||||
}
|
||||
|
||||
// Requires "*prev_ptr" to be non-NULL. Deletes and a block of minimal size
|
||||
|
@ -1179,10 +1175,6 @@ void GenCollectedHeap::release_scratch() {
|
|||
}
|
||||
}
|
||||
|
||||
size_t GenCollectedHeap::large_typearray_limit() {
|
||||
return gen_policy()->large_typearray_limit();
|
||||
}
|
||||
|
||||
class GenPrepareForVerifyClosure: public GenCollectedHeap::GenClosure {
|
||||
void do_generation(Generation* gen) {
|
||||
gen->prepare_for_verify();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue