mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 02:54:35 +02:00
8022800: Use specific generations rather than generation iteration
Reviewed-by: jmasa, ehelin
This commit is contained in:
parent
7cea3820af
commit
19ba466575
8 changed files with 41 additions and 80 deletions
|
@ -567,8 +567,6 @@ void DefNewGeneration::collect(bool full,
|
|||
gc_tracer.report_gc_start(gch->gc_cause(), _gc_timer->gc_start());
|
||||
|
||||
_next_gen = gch->next_gen(this);
|
||||
assert(_next_gen != NULL,
|
||||
"This must be the youngest gen, and not the only gen");
|
||||
|
||||
// If the next generation is too full to accommodate promotion
|
||||
// from this generation, pass on collection; let the next generation
|
||||
|
@ -901,8 +899,6 @@ bool DefNewGeneration::collection_attempt_is_safe() {
|
|||
if (_next_gen == NULL) {
|
||||
GenCollectedHeap* gch = GenCollectedHeap::heap();
|
||||
_next_gen = gch->next_gen(this);
|
||||
assert(_next_gen != NULL,
|
||||
"This must be the youngest gen, and not the only gen");
|
||||
}
|
||||
return _next_gen->promotion_attempt_is_safe(used());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue