Shenandoah implemented an variant of Google's work stealing termination protocol , based on [1], which requires to peek the remaining tasks in task queues, so the termination protocol can wake up just enough workers for the remaining tasks.
[1] Understanding and improving JVM GC work stealing at the data center scale (http://dl.acm.org/citation.cfm?id=2926706)
[1] Understanding and improving JVM GC work stealing at the data center scale (http://dl.acm.org/citation.cfm?id=2926706)