[jdk17u-dev] RFR: 8282684: Obsolete UseContainerCpuShares and PreferContainerQuotaForCPUCount flags

Severin Gehwolf sgehwolf at openjdk.org
Mon Feb 16 10:02:44 UTC 2026


On Sat, 14 Feb 2026 05:57:41 GMT, SendaoYan <syan at openjdk.org> wrote:

> Hi all,
> 
> This backport PR remove obsolete UseContainerCpuShares and PreferContainerQuotaForCPUCount flags. These flags are deprecated in JDK 19 for [JDK-8281181](https://bugs.openjdk.org/browse/JDK-8281181), and [JDK-8281181](https://bugs.openjdk.org/browse/JDK-8281181) has been backported to jdk17u-dev and jdk11u-dev, so I think it will be useful to backport [JDK-8282684](https://bugs.openjdk.org/browse/JDK-8282684) to jdk17u-dev and jdk11u-dev.
> 
> This backport PR patch(jdk17u-dev) and the main line patch looks all the same, except for the meaingless deprecated comments.
> 
> Test containers/docker/TestCPUAwareness.java failed before this PR, passed after this PR.
> 
> Additional testing:
> 
> - [x] All the docker tests

This doesn't seem suitable for JDK 17u. Deprecations are one thing, but removals are a totally different story. There is a reason why this only happened a major release after the deprecation. The deprecation backport helps users to know that this option will go away in future versions when/if they upgrade the major version.

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

PR Comment: https://git.openjdk.org/jdk17u-dev/pull/4266#issuecomment-3907527403


More information about the jdk-updates-dev mailing list