mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 19:44:41 +02:00
6690928: Use spinning in combination with yields for workstealing termination
Substitute a spin loop for most calls to yield() to reduce the stress on the system. Reviewed-by: tonyp
This commit is contained in:
parent
61181babf1
commit
3b5d6a04dd
9 changed files with 116 additions and 4 deletions
|
@ -615,6 +615,10 @@ bool PSScavenge::invoke_no_policy() {
|
|||
gc_task_manager()->print_task_time_stamps();
|
||||
}
|
||||
|
||||
#ifdef TRACESPINNING
|
||||
ParallelTaskTerminator::print_termination_counts();
|
||||
#endif
|
||||
|
||||
return !promotion_failure_occurred;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue