mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 19:44:41 +02:00
7199349: NPG: PS: Crash seen in jprt
Reviewed-by: johnc
This commit is contained in:
parent
7ccbee4177
commit
88ab075a6d
7 changed files with 38 additions and 150 deletions
|
@ -395,9 +395,13 @@ bool PSScavenge::invoke_no_policy() {
|
|||
|
||||
GCTaskQueue* q = GCTaskQueue::create();
|
||||
|
||||
uint stripe_total = active_workers;
|
||||
for(uint i=0; i < stripe_total; i++) {
|
||||
q->enqueue(new OldToYoungRootsTask(old_gen, old_top, i, stripe_total));
|
||||
if (!old_gen->object_space()->is_empty()) {
|
||||
// There are only old-to-young pointers if there are objects
|
||||
// in the old gen.
|
||||
uint stripe_total = active_workers;
|
||||
for(uint i=0; i < stripe_total; i++) {
|
||||
q->enqueue(new OldToYoungRootsTask(old_gen, old_top, i, stripe_total));
|
||||
}
|
||||
}
|
||||
|
||||
q->enqueue(new ScavengeRootsTask(ScavengeRootsTask::universe));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue