RFR: 8221394: Clean up ConcurrentGCThread
per.liden at oracle.com
Mon Mar 25 08:54:01 UTC 2019
ConcurrentGCThread currently uses Terminator_lock to coordinate
shutdown. This is dubious, as this lock is shared by many threads, some
of which calls notify() rather than notify_all() to signal that
something happened. It's also potentially inefficient as we might be
waking up more threads than needed. Each ConcurrentGCThread should have
it's own monitor for this.
This patch introduces a separate monitor for each instance of
ConcurrentGCThread and does some general code cleanups in that class.
More information about the hotspot-gc-dev