mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 03:24:38 +02:00
8076231: Remove unused is_in_partial_collection()
Reviewed-by: brutisso, drwhite
This commit is contained in:
parent
062cf882e0
commit
ff23a17283
7 changed files with 3 additions and 47 deletions
|
@ -203,17 +203,6 @@ bool ParallelScavengeHeap::is_scavengable(const void* addr) {
|
|||
return is_in_young((oop)addr);
|
||||
}
|
||||
|
||||
#ifdef ASSERT
|
||||
// Don't implement this by using is_in_young(). This method is used
|
||||
// in some cases to check that is_in_young() is correct.
|
||||
bool ParallelScavengeHeap::is_in_partial_collection(const void *p) {
|
||||
assert(is_in_reserved(p) || p == NULL,
|
||||
"Does not work if address is non-null and outside of the heap");
|
||||
// The order of the generations is old (low addr), young (high addr)
|
||||
return p >= old_gen()->reserved().end();
|
||||
}
|
||||
#endif
|
||||
|
||||
// There are two levels of allocation policy here.
|
||||
//
|
||||
// When an allocation request fails, the requesting thread must invoke a VM
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue