JDK-8335643 : serviceability/dcmd/vm tests fail for ZGC after JDK-8322475
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 24
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux
  • CPU: x86_64,aarch64
  • Submitted: 2024-07-03
  • Updated: 2024-07-29
  • Resolved: 2024-07-08
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 b06Fixed
Related Reports
Relates :  
Relates :  
Sub Tasks
JDK-8335655 :  
Description
Two tests fail, presumably after JDK-8322475. The tests are failing when run with "-XX:+UseZGC" (and "-XX:+UseZGC -XX:-ZGenerational"), not yet sure if other modes also trigger the failures.

serviceability/dcmd/vm/SystemMapTest.java

test SystemMapTest.jmx(): failure
java.lang.RuntimeException: '0x\\p{XDigit}+-0x\\p{XDigit}+ +\\d+ +[rwsxp-]+ +\\d+ +\\d+ +(4K|8K|16K|64K|2M|16M|64M) +com.*JAVAHEAP.*' missing from stdout/stderr
	at jdk.test.lib.process.OutputAnalyzer.shouldMatch(OutputAnalyzer.java:371)
	at SystemMapTest.run(SystemMapTest.java:50)
	at SystemMapTest.jmx(SystemMapTest.java:57)



serviceability/dcmd/vm/SystemDumpMapTest.java

Missing patterns in dump:
0x\\p{XDigit}+-0x\\p{XDigit}+ +\\d+ +[rwsxp-]+ +\\d+ +\\d+ +(4K|8K|16K|64K|2M|16M|64M) +com.*JAVAHEAP.*
test SystemDumpMapTest.jmx(): failure
java.lang.RuntimeException: java.lang.RuntimeException: Missing patterns
...

Comments
Changeset: 3cce31ad Author: Thomas Stuefe <stuefe@openjdk.org> Date: 2024-07-08 08:06:56 +0000 URL: https://git.openjdk.org/jdk/commit/3cce31ad8877ec62429981871bcb0067770f9ccb
08-07-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/20034 Date: 2024-07-04 12:57:09 +0000
05-07-2024

A sample jtr file has been attached.
04-07-2024

Looking at one of the failures, these are the only JAVAHEAP lines I see: 0x0000040000000000-0x000004001ee00000 517996544 rw-s 24170496 0 4K shrd,com JAVAHEAP /memfd:java_heap 0x000004001ee00000-0x00000407b6000000 32600227840 ---p 0 0 4K - JAVAHEAP -
03-07-2024