Hi everyone, `TestLimitsUpdating.java` tests updating container limits live during a JVMs runtime. One of these updates is to the number of CPUs available, from 2 to 3. However, if there are only 2 CPUs visible to the JVM (total available, or restricted by other means), this update is ignored, and we are bounded to 2 CPUs. The tests expects the new limit to be 3, and thus fails.
I propose we lower the number from 2/3 -> 1/2 to allow more configurations to run this tests. If we only have 1 CPU available, we should instead skip the test as we can't update the number of CPUs in a meaningful way. Testing: - Local testing with both low and high number of CPUs available - Oracle tiers 1-5 --------- - [x] I confirm that I make this contribution in accordance with the [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai). ------------- Commit messages: - too few cpus fix Changes: https://git.openjdk.org/jdk/pull/30985/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=30985&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8377991 Stats: 28 lines in 2 files changed: 16 ins; 0 del; 12 mod Patch: https://git.openjdk.org/jdk/pull/30985.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/30985/head:pull/30985 PR: https://git.openjdk.org/jdk/pull/30985
