RFR: 8268573: Remove expired flags in JDK 19

Alan Bateman alanb at openjdk.java.net
Tue Dec 14 07:57:13 UTC 2021


On Mon, 13 Dec 2021 22:17:39 GMT, David Holmes <dholmes at openjdk.org> wrote:

> Please review this simple change to remove all the flags that expired in JDK 19 from the flag table in arguments.cpp.
> 
> The java manpage is also updated as the UseBiasedLocking flag is moved from the "obsoleted" section, to the "removed" section. Plus we update the list of previous release docs.
> 
> Testing: local - all the runtime/CommandLine tests
> 
> Thanks,
> David

src/hotspot/share/runtime/arguments.cpp line 551:

> 549:   { "G1RSetSparseRegionEntries",    JDK_Version::undefined(), JDK_Version::jdk(18), JDK_Version::jdk(19) },
> 550:   { "AlwaysLockClassLoader",        JDK_Version::jdk(17), JDK_Version::jdk(18), JDK_Version::jdk(19) },
> 551:   { "UseBiasedLocking",             JDK_Version::jdk(15), JDK_Version::jdk(18), JDK_Version::jdk(19) },

There are a number of servers with start scripts that specify -XX:-UseBiasedLocking. The option may be obsolete and I wonder if better to leave it as obsolete until there is more uptake of JDK 17 which does not need to disable it explicitly.

-------------

PR: https://git.openjdk.java.net/jdk/pull/6819


More information about the hotspot-runtime-dev mailing list