JDK-8245226 : Clean-up FlagSetting and remove misuse.
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 15,16
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2020-05-18
  • Updated: 2024-11-13
  • Resolved: 2020-07-14
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 16
16 b06Fixed
Related Reports
Relates :  
Relates :  
Description
In a few places, FlagSetting is used as a general mechanism for local save/modify and restore. This is not the intention. Instead, use a general mechanism in these cases and preserve FlagSetting for its intended purpose. Now, FlagSetting (and friends) can be based on the same general pattern for local save/modify and restore.

This will separate the current use-cases (of FlagSetting) in order to remove/replace the brittle use of FlagSetting and friends (after related re-work).
Comments
URL: https://hg.openjdk.java.net/jdk/jdk/rev/a5649ebf9419 User: phedlin Date: 2020-07-14 12:35:10 +0000
14-07-2020

JDK-8243205 shouldn't affect the FlagSetting class.
08-07-2020

Reopening since JDK-8243205 is stuck in tbd and overlap is likely to be minor.
08-07-2020

JDK-8236988 has been superceded by: JDK-8243205 Modularize global variable declaration for JVM flag macros
19-05-2020

This was intended as a minor clean-up, nothing drastic, and has been sitting waiting on JDK-8236988, which is now closed.
19-05-2020

There are other changes to the flags in the pipeline - see JDK-8236988 - Modular Design for JVM Flags. I'm not sure of this overlaps or not.
19-05-2020