RFR: 8268573: Remove expired flags in JDK 19
David Holmes
dholmes at openjdk.java.net
Tue Dec 14 12:50:08 UTC 2021
On Tue, 14 Dec 2021 07:53:40 GMT, Alan Bateman <alanb 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.
I don't understand the relevance of "uptake of JDK 17" - this change only affects 19. Anyone on 17 will get the deprecation warning as we deliberately deferred obsoleting the flag until JDK 18.
-------------
PR: https://git.openjdk.java.net/jdk/pull/6819
More information about the hotspot-runtime-dev
mailing list