JDK-8334771 : [TESTBUG] Run TestDockerMemoryMetrics.java with -Xcomp fails exitValue = 137
  • Type: Bug
  • Component: hotspot
  • Sub-Component: test
  • Affected Version: 24
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux
  • CPU: x86_64
  • Submitted: 2024-06-23
  • Updated: 2024-07-29
  • Resolved: 2024-07-19
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 24
24 b08Fixed
Related Reports
Relates :  
Description
Test jdk/internal/platform/docker/TestDockerMemoryMetrics.java fails when run with -Xcomp after JDK-8294960:
STDERR:
 stdout: [[failcount]
];
 stderr: []
 exitValue = 137

java.lang.RuntimeException: Expected to get exit value of [0], exit value is: [137]
    at jdk.test.lib.process.OutputAnalyzer.shouldHaveExitValue(OutputAnalyzer.java:521)
    at TestDockerMemoryMetrics.testMemoryFailCount(TestDockerMemoryMet
Comments
Changeset: fa5ad700 Branch: master Author: SendaoYan <syan@openjdk.org> Committer: Serguei Spitsyn <sspitsyn@openjdk.org> Date: 2024-07-19 07:06:51 +0000 URL: https://git.openjdk.org/jdk/commit/fa5ad700bb6a92aef7577969e09b4fbd93feb388
19-07-2024

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/19864 Date: 2024-06-24 16:16:29 +0000
09-07-2024

On linux x86_64 and with -Xcomp options: 1. Before JDK-8294960, '--memory=43m' failed, and '--memory=44m' passed 2. After JDK-8294960m, '--memory=65m' failed, and '--memory=66m' passed
24-06-2024

standalone test command: jtreg -va -nr -w tmp test/jdk/jdk/internal/platform/docker/TestDockerMemoryMetrics.java cd tmp/scratch docker build --no-cache --tag jdk-internal:test jdk-internal-test-jdk-internal-platform-docker-TestDockerMemoryMetrics-metrics-memory cd ../.. docker run --tty=true --rm --volume $PWD/tmp/classes/jdk/internal/platform/docker/TestDockerMemoryMetrics.d:/test-classes/ --memory=64m jdk-internal:test /jdk/bin/java -XX:+ErrorFileToStderr -Xms64m -Xmx64m -Xcomp -version time docker run --tty=true --rm --volume $PWD/tmp/classes/jdk/internal/platform/docker/TestDockerMemoryMetrics.d:/test-classes/ --memory=64m jdk-internal:test /jdk/bin/java -XX:+ErrorFileToStderr -Xmx64m -cp /test-classes/ --add-exports java.base/jdk.internal.platform=ALL-UNNAMED -Xcomp MetricsMemoryTester failcount
24-06-2024

After JDK-8294960, the codecache usage increased significantly, non-profiled 3068Kb->3583Kb, profiled 6408Kb->7846Kb. Before JDK-8294960, the codecache usage: CodeHeap 'non-profiled nmethods': size=118596Kb used=3068Kb max_used=3068Kb free=115527Kb bounds [0x00007f3c2022a000, 0x00007f3c2052a000, 0x00007f3c275fb000] CodeHeap 'profiled nmethods': size=118588Kb used=6408Kb max_used=6408Kb free=112179Kb bounds [0x00007f3c185fb000, 0x00007f3c18c4b000, 0x00007f3c1f9ca000] CodeHeap 'non-nmethods': size=8576Kb used=1155Kb max_used=1181Kb free=7421Kb bounds [0x00007f3c1f9ca000, 0x00007f3c1fc3a000, 0x00007f3c2022a000] CodeCache: size=245760Kb, used=10631Kb, max_used=10657Kb, free=235127Kb total_blobs=5644, nmethods=5245, adapters=307, full_count=0 Compilation: enabled, stopped_count=0, restarted_count=0 After JDK-8294960, the codecache usage: CodeHeap 'non-profiled nmethods': size=118596Kb used=3583Kb max_used=3583Kb free=115012Kb bounds [0x00007ff57c21b000, 0x00007ff57c59b000, 0x00007ff5835ec000] CodeHeap 'profiled nmethods': size=118588Kb used=7846Kb max_used=7846Kb free=110741Kb bounds [0x00007ff5745ec000, 0x00007ff574d9c000, 0x00007ff57b9bb000] CodeHeap 'non-nmethods': size=8576Kb used=1146Kb max_used=1201Kb free=7430Kb bounds [0x00007ff57b9bb000, 0x00007ff57bc2b000, 0x00007ff57c21b000] CodeCache: size=245760Kb, used=12575Kb, max_used=12630Kb, free=233183Kb total_blobs=6463, nmethods=6070, adapters=301, full_count=0 Compilation: enabled, stopped_count=0, restarted_count=0
24-06-2024

similar to JDK-8224506
23-06-2024