In JDK-8136854 we found that the current code to synchronize the concurrent mark thread with the main thread during initialization uses a polling loop with a (previously) large delay.
In very short running applications (microbenchmarks) this caused very slow startup of G1. InJDK-8136854 this problem has been resolved by decreasing this delay significantly.
However it would likely be much better to use a notify/wait scheme for this to avoid any kind of polling loop, which seems a much "nicer" solution.
This CR is to prototype this and evaluate it against the current solution.
In very short running applications (microbenchmarks) this caused very slow startup of G1. In
However it would likely be much better to use a notify/wait scheme for this to avoid any kind of polling loop, which seems a much "nicer" solution.
This CR is to prototype this and evaluate it against the current solution.
- duplicates
-
JDK-8221392 Reduce ConcurrentGCThreads spinning during start up
-
- Resolved
-
- relates to
-
JDK-8136854 G1 ConcurrentG1RefineThread::stop delays JVM shutdown for >150ms
-
- Closed
-
-
JDK-8172792 JEP 308: Improve Dynamic Number of Thread Sizing for G1
-
- Closed
-