JDK-8279047 : Remove expired flags in JDK 20
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 20
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2021-12-21
  • Updated: 2022-06-13
  • Resolved: 2022-06-11
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 20 Other
20 masterFixed jdk-cpuFixed
Related Reports
Cloners :  
Cloners :  
Duplicate :  
Relates :  
Description
All flags that expire in JDK 20 should be removed from the special_jvm_flags table.

The Java manpage should also be updated as appropriate e.g. if a flag previously documented as obsolete is now expired we move it from the obsolete section to the "expired" section; and we remove the list of options listed as removed in the previous release (if any). 
Comments
Changeset: d46f404b Author: David Holmes <dholmes@openjdk.org> Date: 2022-06-11 05:52:14 +0000 URL: https://git.openjdk.org/jdk/commit/d46f404b3179c66e8e5775a9e2253c95238153c7
11-06-2022

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/9127 Date: 2022-06-10 13:23:51 +0000
10-06-2022

Expired Flags in 20: - FilterSpuriousWakeups - MinInliningThreshold - PrefetchFieldsAhead No remaining usages in code or tests. - UseHeavyMonitors (PRODUCT ONLY) As this flag now only exists for debug builds it is made a "develop" flag rather than product. There are then changes to two tests that use this flag, so that they only run on a debug VM. - test/jdk/java/lang/Thread/virtual/HoldsLock.java The second @run that uses UseHeavyMonitors is moved to a second test segment that only applies to the debug VM. - test/jdk/java/util/concurrent/ConcurrentHashMap/MapLoops.java Change the test section that uses UseHeavyMonitors to only run on a debug VM and remove the IgnoreUnrecognizedOptions flag. Note that the existing test logic would run the same test twice on product builds. No documentation in the manpage exists for any of the newly expired flags. Obsoleted flags in 20: - ExtendedDTraceProbes Documented in manpage so moved from Deprecated section to Obsolete section. There is special handling for messages about use of this flag so that won't be updated until the flag is actually obsoleted (JDK-8279913). - UseContainerCpuShares - PreferContainerQuotaForCPUCount - AliasLevel Undocumented. Java manpage updates: - Updates Java version to 20 - Moved ExtendedDTraceProbe info as previously mentioned - Applied changes from the .1 file that had not been applied to the markdown source so that they were not lost (and note the .1 file was also missing changes from the markdown file that had not been propagated). - Removed an unrepresentable character (the section symbol) that was not being generated into either the html or nroff file correctly
10-06-2022