JDK-8169517 : WhiteBox should provide concurrent GC phase control
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 9
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2016-11-09
  • Updated: 2020-02-28
  • Resolved: 2017-04-13
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 b21Fixed
Related Reports
Blocks :  
Relates :  
Relates :  
Description
WhiteBox should provide an API for putting a concurrent GC into a specific phase and holding it there.  This is needed for writing tests that require the collector be in a particular phase when some test action is performed.

Comments
This enhancement is needed for testing fix for JDK-8166188. I have working code for the whitebox enhancement for G1, but it has turned out to be somewhat more intrusive than I originally thought it would be. I've also not addressed CMS yet, and that might require changes to some of the internal supporting infrastructure. So my current plan is to use what I have to prototype a test for JDK-8166188, but defer adding that test and this enhancement to JDK 10.
18-11-2016

I intend to file an FC extension request for this, as I need this feature for testing fix for JDK-8166188.
09-11-2016