JDK-8188919 : Generalize GC thread suspend/resume at safepoints
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 9,10
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2017-10-09
  • Updated: 2017-11-10
  • Resolved: 2017-10-17
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 10
10 b31Fixed
Related Reports
Relates :  
Description
When a safepoint is synchronized, GC threads might need to be suspended, and similarly when the safepoint is unsynchronized, GC might need to resume those threads.

This is currently done in an ugly way where we check if we are using CMS or G1 and then go on to use their specific mechanisms.

I propose there should be an interface between the safepoint synchronizer and the GC to generalize this behaviour.