Skip to content

Improve cpu awareness on zos - #23589

Merged
r30shah merged 1 commit into
eclipse-openj9:masterfrom
VermaSh:improve_cpu_awareness_on_zos
May 13, 2026
Merged

r30shah merged 1 commit into
eclipse-openj9:masterfrom
VermaSh:improve_cpu_awareness_on_zos

Conversation

@VermaSh

@VermaSh VermaSh commented Mar 26, 2026 •

Copy link
Copy Markdown
Contributor

Enhance z/OS CPU monitoring by utilizing system control structures to
directly retrieve CPU load metrics. This provides more accurate CPU
utilization data for JIT compilation decisions and verbose logging.

Key changes:

  • Add support for j9sysinfo_get_CPU_load() and j9sysinfo_get_CPU_capacity()
    port library APIs on z/OS to retrieve CPU metrics from control structures
  • Implement detailed CPU statistics logging via -Xjit:verbose={cpuStats}
    including zIIP count, capacity, GCP count, utilization percentages,
    and process timing information
  • Add cpuStatsPrintInterval option to control logging frequency (default: 1000ms)
  • Enable isJVMStarved flag support on z/OS using the new CPU load helpers
  • Print ASID in hexadecimal format for consistency with z/OS conventions
  • Update CpuUtilization to use direct CPU load retrieval on z/OS

This implementation leverages z/OS-specific control structures (CVT, CSD)
to provide accurate CPU metrics that account for zIIP processors, SMT
configurations, and the SVT normalization factor.

Signed-off-by: Shubham Verma shubhamv.sv@gmail.com

@VermaSh
VermaSh force-pushed the improve_cpu_awareness_on_zos branch 5 times, most recently from f8bba00 to 4849a4d Compare March 30, 2026 23:00
@VermaSh
VermaSh force-pushed the improve_cpu_awareness_on_zos branch 2 times, most recently from 192f8c3 to 1311f37 Compare April 9, 2026 13:27
@VermaSh

VermaSh commented Apr 9, 2026

Copy link
Copy Markdown
Contributor Author

Depends on eclipse-omr/omr#8190

@VermaSh

VermaSh commented Apr 9, 2026

Copy link
Copy Markdown
Contributor Author

Almost ready for review. We’re seeing the same performance gains as with the previous prototype build; however, I still need to launch test buckets for these changes. I'm currently unable to launch zOS builds due to infra issues but I have launched test builds for other platforms. I’ll remove the WIP label once I’ve confirmed that this PR doesn’t introduce any failures.

@VermaSh

VermaSh commented Apr 13, 2026

Copy link
Copy Markdown
Contributor Author

My personal build for non-z/OS platforms don't show any failures due to these changes. I tested sanity.functional, sanity.system, extended.functional and extended.system. There were 3 failures, 2 of which are already being tracked

MiniMix_extended_3h_0 failure:

[2026-04-09T18:06:48.825Z] LT  testStarted : testMultipleConnectSequential(net.adoptopenjdk.test.nio2.asyncio.client.MultipleConnectFutureTest)
[2026-04-09T18:06:48.825Z] LT  MultipleConnectFutureTest.testMultipleConnectSequential() creating 10 connections
[2026-04-09T18:06:48.825Z] LT  testFailure: testMultipleConnectSequential(net.adoptopenjdk.test.nio2.asyncio.client.MultipleConnectFutureTest): java.net.BindException: Can't assign requested address
[2026-04-09T18:06:48.825Z] LT  java.util.concurrent.ExecutionException: java.net.BindException: Can't assign requested address
[2026-04-09T18:06:48.825Z] LT  	at java.base/sun.nio.ch.CompletedFuture.get(CompletedFuture.java:78)
[2026-04-09T18:06:48.825Z] LT  	at net.adoptopenjdk.test.nio2.asyncio.client.MultipleConnectFutureTest.testMultipleConnectSequential(MultipleConnectFutureTest.java:83)
[2026-04-09T18:06:48.825Z] LT  	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
[2026-04-09T18:06:48.825Z] LT  	at java.base/java.lang.reflect.Method.invoke(Method.java:586)
[2026-04-09T18:06:48.825Z] LT  	at junit.framework.TestCase.runTest(TestCase.java:176)
[2026-04-09T18:06:48.825Z] LT  	at junit.framework.TestCase.runBare(TestCase.java:141)
[2026-04-09T18:06:48.825Z] LT  	at junit.framework.TestResult$1.protect(TestResult.java:122)
[2026-04-09T18:06:48.825Z] LT  	at junit.framework.TestResult.runProtected(TestResult.java:142)
[2026-04-09T18:06:48.825Z] LT  	at junit.framework.TestResult.run(TestResult.java:125)
[2026-04-09T18:06:48.825Z] LT  	at junit.framework.TestCase.run(TestCase.java:129)
[2026-04-09T18:06:48.825Z] LT  	at junit.framework.TestSuite.runTest(TestSuite.java:252)
[2026-04-09T18:06:48.825Z] LT  	at junit.framework.TestSuite.run(TestSuite.java:247)
[2026-04-09T18:06:48.825Z] LT  	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:86)
[2026-04-09T18:06:48.825Z] LT  	at org.junit.runners.Suite.runChild(Suite.java:128)
[2026-04-09T18:06:48.825Z] LT  	at org.junit.runners.Suite.runChild(Suite.java:27)
[2026-04-09T18:06:48.825Z] LT  	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
[2026-04-09T18:06:48.825Z] LT  	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
[2026-04-09T18:06:48.825Z] LT  	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
[2026-04-09T18:06:48.825Z] LT  	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
[2026-04-09T18:06:48.825Z] LT  	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
[2026-04-09T18:06:48.825Z] LT  	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
[2026-04-09T18:06:48.825Z] LT  	at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
[2026-04-09T18:06:48.825Z] LT  	at org.junit.runner.JUnitCore.run(JUnitCore.java:115)
[2026-04-09T18:06:48.825Z] LT  	at net.adoptopenjdk.loadTest.adaptors.JUnitAdaptor.executeTest(JUnitAdaptor.java:130)
[2026-04-09T18:06:48.825Z] LT  	at net.adoptopenjdk.loadTest.LoadTestRunner$2.run(LoadTestRunner.java:182)
[2026-04-09T18:06:48.825Z] LT  	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
[2026-04-09T18:06:48.825Z] LT  	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
[2026-04-09T18:06:48.825Z] LT  	at java.base/java.lang.Thread.run(Thread.java:1600)
[2026-04-09T18:06:48.825Z] LT  Caused by: java.net.BindException: Can't assign requested address
[2026-04-09T18:06:48.825Z] LT  	at java.base/sun.nio.ch.Net.connect0(Native Method)
[2026-04-09T18:06:48.825Z] LT  	at java.base/sun.nio.ch.Net.connect(Net.java:601)
[2026-04-09T18:06:48.825Z] LT  	at java.base/sun.nio.ch.Net.connect(Net.java:590)
[2026-04-09T18:06:48.825Z] LT  	at java.base/sun.nio.ch.UnixAsynchronousSocketChannelImpl.implConnect(UnixAsynchronousSocketChannelImpl.java:336)
[2026-04-09T18:06:48.825Z] LT  	at java.base/sun.nio.ch.AsynchronousSocketChannelImpl.connect(AsynchronousSocketChannelImpl.java:200)
[2026-04-09T18:06:48.825Z] LT  	at net.adoptopenjdk.test.nio2.asyncio.client.MultipleConnectFutureTest.testMultipleConnectSequential(MultipleConnectFutureTest.java:82)[2026-04-09T18:06:48.825Z] LT  testStarted : testMultipleConnectSequential(net.adoptopenjdk.test.nio2.asyncio.client.MultipleConnectFutureTest)
[2026-04-09T18:06:48.825Z] LT  MultipleConnectFutureTest.testMultipleConnectSequential() creating 10 connections
[2026-04-09T18:06:48.825Z] LT  testFailure: testMultipleConnectSequential(net.adoptopenjdk.test.nio2.asyncio.client.MultipleConnectFutureTest): java.net.BindException: Can't assign requested address
[2026-04-09T18:06:48.825Z] LT  java.util.concurrent.ExecutionException: java.net.BindException: Can't assign requested address
[2026-04-09T18:06:48.825Z] LT  	at java.base/sun.nio.ch.CompletedFuture.get(CompletedFuture.java:78)
[2026-04-09T18:06:48.825Z] LT  	at net.adoptopenjdk.test.nio2.asyncio.client.MultipleConnectFutureTest.testMultipleConnectSequential(MultipleConnectFutureTest.java:83)
[2026-04-09T18:06:48.825Z] LT  	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
[2026-04-09T18:06:48.825Z] LT  	at java.base/java.lang.reflect.Method.invoke(Method.java:586)
[2026-04-09T18:06:48.825Z] LT  	at junit.framework.TestCase.runTest(TestCase.java:176)
[2026-04-09T18:06:48.825Z] LT  	at junit.framework.TestCase.runBare(TestCase.java:141)
[2026-04-09T18:06:48.825Z] LT  	at junit.framework.TestResult$1.protect(TestResult.java:122)
[2026-04-09T18:06:48.825Z] LT  	at junit.framework.TestResult.runProtected(TestResult.java:142)
[2026-04-09T18:06:48.825Z] LT  	at junit.framework.TestResult.run(TestResult.java:125)
[2026-04-09T18:06:48.825Z] LT  	at junit.framework.TestCase.run(TestCase.java:129)
[2026-04-09T18:06:48.825Z] LT  	at junit.framework.TestSuite.runTest(TestSuite.java:252)
[2026-04-09T18:06:48.825Z] LT  	at junit.framework.TestSuite.run(TestSuite.java:247)
[2026-04-09T18:06:48.825Z] LT  	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:86)
[2026-04-09T18:06:48.825Z] LT  	at org.junit.runners.Suite.runChild(Suite.java:128)
[2026-04-09T18:06:48.825Z] LT  	at org.junit.runners.Suite.runChild(Suite.java:27)
[2026-04-09T18:06:48.825Z] LT  	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
[2026-04-09T18:06:48.825Z] LT  	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
[2026-04-09T18:06:48.825Z] LT  	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
[2026-04-09T18:06:48.825Z] LT  	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
[2026-04-09T18:06:48.825Z] LT  	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
[2026-04-09T18:06:48.825Z] LT  	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
[2026-04-09T18:06:48.825Z] LT  	at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
[2026-04-09T18:06:48.825Z] LT  	at org.junit.runner.JUnitCore.run(JUnitCore.java:115)
[2026-04-09T18:06:48.825Z] LT  	at net.adoptopenjdk.loadTest.adaptors.JUnitAdaptor.executeTest(JUnitAdaptor.java:130)
[2026-04-09T18:06:48.825Z] LT  	at net.adoptopenjdk.loadTest.LoadTestRunner$2.run(LoadTestRunner.java:182)
[2026-04-09T18:06:48.825Z] LT  	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
[2026-04-09T18:06:48.825Z] LT  	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
[2026-04-09T18:06:48.825Z] LT  	at java.base/java.lang.Thread.run(Thread.java:1600)
[2026-04-09T18:06:48.825Z] LT  Caused by: java.net.BindException: Can't assign requested address
[2026-04-09T18:06:48.825Z] LT  	at java.base/sun.nio.ch.Net.connect0(Native Method)
[2026-04-09T18:06:48.825Z] LT  	at java.base/sun.nio.ch.Net.connect(Net.java:601)
[2026-04-09T18:06:48.825Z] LT  	at java.base/sun.nio.ch.Net.connect(Net.java:590)
[2026-04-09T18:06:48.825Z] LT  	at java.base/sun.nio.ch.UnixAsynchronousSocketChannelImpl.implConnect(UnixAsynchronousSocketChannelImpl.java:336)
[2026-04-09T18:06:48.825Z] LT  	at java.base/sun.nio.ch.AsynchronousSocketChannelImpl.connect(AsynchronousSocketChannelImpl.java:200)
[2026-04-09T18:06:48.825Z] LT  	at net.adoptopenjdk.test.nio2.asyncio.client.MultipleConnectFutureTest.testMultipleConnectSequential(MultipleConnectFutureTest.java:82)

@VermaSh

VermaSh commented Apr 13, 2026

Copy link
Copy Markdown
Contributor Author

My zoS test buckets didn't complete due to infra issues, I have relaunched them. Since I didn’t see any z/OS failures in my earlier testing, I’ll mark this PR as ready for review while the tests finish running.

@VermaSh
VermaSh marked this pull request as ready for review April 13, 2026 22:29
@VermaSh
VermaSh requested a review from dsouzai as a code owner April 13, 2026 22:29
@VermaSh

VermaSh commented Apr 13, 2026

Copy link
Copy Markdown
Contributor Author

@joransiu, @r30shah , @mpirvu can I please get a review for these changes?

@VermaSh

VermaSh commented Apr 13, 2026

Copy link
Copy Markdown
Contributor Author

looking into the Clang Format Check failure

@VermaSh
VermaSh force-pushed the improve_cpu_awareness_on_zos branch 2 times, most recently from ab5ef00 to caff59e Compare April 13, 2026 23:13
@VermaSh VermaSh changed the title WIP: Improve cpu awareness on zos Improve cpu awareness on zos Apr 13, 2026
@VermaSh
VermaSh force-pushed the improve_cpu_awareness_on_zos branch 2 times, most recently from e0819e0 to 883d0e5 Compare April 14, 2026 03:47
@VermaSh

VermaSh commented Apr 14, 2026

Copy link
Copy Markdown
Contributor Author

Format checks are passing, this is ready for review

@r30shah r30shah left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Quick check through, changes overall looks ok to me, though I will review this together with OMR counter part, but small question,

Comment thread runtime/compiler/env/CpuUtilization.cpp Outdated
double cpuCapacity = 0.0;
if (0 == portLibraryStatusSys) {
portLibraryStatusSys = j9sysinfo_get_CPU_capacity(&cpuCapacity);
machineCpuStats->numberOfCpus = cpuCapacity;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is implicit casting here. I assume this numberOfCpus being used later on to calculate the load, can you confirm trunacting this value does not impact - i.e. this is throwing away the factor for SMT gain.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have updated the code to query CPU capacity every time instead of caching it in machineCpuStats->numberOfCpus. We set machineCpuStats->numberOfCpus to -1 as an indicator that it isn't valid. I chose this approach over changing the member’s type to avoid the added complexity of having platform-dependent types.

@mpirvu mpirvu left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@VermaSh
VermaSh force-pushed the improve_cpu_awareness_on_zos branch 3 times, most recently from ff521e6 to 3171085 Compare April 17, 2026 16:36

@r30shah r30shah left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@r30shah

r30shah commented May 4, 2026

Copy link
Copy Markdown
Contributor

jenkins test sanity all jdk21

@r30shah

r30shah commented May 4, 2026

Copy link
Copy Markdown
Contributor

@VermaSh - Please share a status of z/OS testing here (Including IBM SDK8).

@VermaSh

VermaSh commented May 4, 2026 •

Copy link
Copy Markdown
Contributor Author

My previous z/OS Jenkins testing didn't have any failures related to these changes. I've kicked off new set of test build (IBM JDK8 test build). I'll summarize the results here once they finish.

@r30shah

r30shah commented May 5, 2026

Copy link
Copy Markdown
Contributor

jenkins test sanity.openjdk alinux jdk21

@VermaSh

VermaSh commented May 5, 2026

Copy link
Copy Markdown
Contributor Author

None of the test failures are related to this PR. Most of them are being tracked by open issues. AArch64 sanity.functional failures aren't being tracked but they don't look like real failures. The test failed because another JVM was using scc which prevented it from deleting it.

AArch64:

09:45:06  	jdk_concurrent_1 - Test results: passed: 124; error: 1; excluded: 5; did not meet platform requirements: 1 
09:45:06  		Failed test cases: 
09:45:06  			TEST: java/util/concurrent/tck/JSR166TestCase.java#security-manager
10:56:59  Testing: Test 35: CMVC 168131 : Cleanup
10:56:59  Test start time: 2026/05/04 14:56:59 Coordinated Universal Time
10:56:59  Running command: "/home/jenkins/workspace/Test_openjdk21_j9_sanity.functional_aarch64_linux_Personal_testList_1/jdkbinary/j2sdk-image/bin/java"  -Xjit -Xgcpolicy:gencon -Xnocompressedrefs  -Xshareclasses:name=ShareClassesCMLTests,nonpersistent,destroy
10:56:59  Time spent starting: 2 milliseconds
10:56:59  Time spent executing: 30 milliseconds
10:56:59  Test result: FAILED
10:56:59   [ERR] JVMSHRC012I Cannot remove shared cache "ShareClassesCMLTests" as there are JVMs still attached to the cache
10:56:59   [ERR] JVMSHRC430I Failed to remove current generation of shared class cache "ShareClassesCMLTests"
10:56:59  >> Success condition was not found: [Output match: has been destroyed]
10:56:59  >> Success condition was not found: [Output match: is destroyed]
10:56:59  >> Failure condition was not found: [Output match: Cache does not exist]
10:56:59  >> Failure condition was not found: [Output match: Unhandled Exception]
10:56:59  >> Failure condition was not found: [Output match: Exception:]
10:56:59  >> Failure condition was not found: [Output match: corrupt]
10:56:59  >> Failure condition was not found: [Output match: Processing dump event]
- testSCCMLTests1_openj9_2:
10:57:23  Testing: Test 35: CMVC 168131 : Cleanup
10:57:23  Test start time: 2026/05/04 14:57:23 Coordinated Universal Time
10:57:23  Running command: "/home/jenkins/workspace/Test_openjdk21_j9_sanity.functional_aarch64_linux_Personal_testList_1/jdkbinary/j2sdk-image/bin/java"  -Xjit -Xgcpolicy:balanced -Xnocompressedrefs  -Xshareclasses:name=ShareClassesCMLTests,nonpersistent,destroy
10:57:23  Time spent starting: 2 milliseconds
10:57:23  Time spent executing: 34 milliseconds
10:57:23  Test result: FAILED
10:57:23   [ERR] JVMSHRC012I Cannot remove shared cache "ShareClassesCMLTests" as there are JVMs still attached to the cache
10:57:23   [ERR] JVMSHRC430I Failed to remove current generation of shared class cache "ShareClassesCMLTests"
10:57:23  >> Success condition was not found: [Output match: has been destroyed]
10:57:23  >> Success condition was not found: [Output match: is destroyed]
10:57:23  >> Failure condition was not found: [Output match: Cache does not exist]
10:57:23  >> Failure condition was not found: [Output match: Unhandled Exception]
10:57:23  >> Failure condition was not found: [Output match: Exception:]
10:57:23  >> Failure condition was not found: [Output match: corrupt]
10:57:23  >> Failure condition was not found: [Output match: Processing dump event]

x86-64_windows failures:

@r30shah

r30shah commented May 5, 2026

Copy link
Copy Markdown
Contributor

jenkins test sanity.functional alinux jdk21

This change enhances CPU awareness on z/OS by adding support for zIIP
processors, SMT-2 detection, and more accurate CPU capacity
calculations.

Key changes:
- Add helpers to retrieve zIIP and GCP counts separately
- Extend z/OS control block mappings (J9CSD, J9CVTSVT, J9IRARMCTZ,
  J9CCT) to access CPU configuration data
- Implement SMT-2 detection (isSMTEnabled()) with capacity adjustment
  using SMT_2_GAIN_FACTOR (1.3)
- Add retrieveZOSCPUCapacity() that scales GCP contribution by 0.1
  when zIIPs are available, reflecting Java's preference for zIIP
  execution
- Include GCP capacity only when IIPHONORPRIORITY is enabled
- Replace direct CCT field access with helper functions for CPU load
  retrieval
- Add new port library APIs omrsysinfo_get_CPU_usage_stats() and
  omrsysinfo_get_CPU_capacity()
- Add CPUUsageStats structure containing z/OS-specific metrics including
  per-process utilization, GCP/zIIP loads, capacities, and
  IIPHONORPRIORITY status
- Update calculateProcessCpuLoad() to use adjusted CPU capacity
  instead of raw CPU count
- Add TR_VerboseCPUStats verbose option for z/OS CPU statistics
  logging

Signed-off-by: Shubham Verma <shubhamv.sv@gmail.com>
@VermaSh
VermaSh force-pushed the improve_cpu_awareness_on_zos branch from 3171085 to 92362da Compare May 11, 2026 15:59
@r30shah

r30shah commented May 11, 2026

Copy link
Copy Markdown
Contributor

jenkins test sanity all jdk21

@r30shah

r30shah commented May 12, 2026

Copy link
Copy Markdown
Contributor

@VermaSh - Can you confirm the failures seen in the build are related or not ?

@VermaSh

VermaSh commented May 12, 2026

Copy link
Copy Markdown
Contributor Author

The PR test failure is not related to this PR.

Exception in thread "main" java.awt.AWTError: Can't connect to X11 window server using 'unix:0' as the value of the DISPLAY variable.

@r30shah

r30shah commented May 12, 2026

Copy link
Copy Markdown
Contributor

jenkins test sanity.openjdk aix jdk21

@VermaSh

VermaSh commented May 12, 2026

Copy link
Copy Markdown
Contributor Author

From my personal z/OS build.

There's only one failure that I am not 100% about, all other failures are either actively tracked or infra related.

JDK21 z/OS extended.openjdk: TEST: com/sun/tools/attach/warnings/DynamicLoadWarningTest.java:

15:14:51  FAILED     DynamicLoadWarningTest::testLoadOneJvmtiAgent '[1] DynamicLoadWarningTest$$Lambda/0x0000000033206d28@b5c790e3' [642ms]
15:14:51  com.sun.tools.attach.AgentLoadException: ATTACH_ERR AgentLoadException JvmtiAgent1:
15:14:51  	at jdk.attach/com.ibm.tools.attach.attacher.OpenJ9VirtualMachine.parseResponse(OpenJ9VirtualMachine.java:385)
15:14:51  	at jdk.attach/com.ibm.tools.attach.attacher.OpenJ9VirtualMachine.loadAgentLibrary(OpenJ9VirtualMachine.java:289)
15:14:51  	at jdk.attach/com.sun.tools.attach.VirtualMachine.loadAgentLibrary(VirtualMachine.java:377)
15:14:51  	at DynamicLoadWarningTest.lambda$loadJvmtiAgent1$0(DynamicLoadWarningTest.java:110)
15:14:51  	at DynamicLoadWarningTest$AppRunner.lambda$run$0(DynamicLoadWarningTest.java:262)
15:14:51  	at java.base/java.lang.Thread.run(Thread.java:1600)
JDk21 z/OS - sanity.openjdk failures

sanity.openjdk failures
https://hyc-runtimes-jenkins.swg-devops.com/job/Test_openjdk21_ibm_sanity.openjdk_s390x_zos_Personal/21/console
FAILED test targets:
jdk_lang_0 - failed due to garbeled characters
Failed test cases:
TEST: java/lang/ProcessBuilder/DestroyTest.java
TEST: java/lang/ProcessBuilder/Basic.java#id0
TEST: java/lang/ProcessHandle/TreeTest.java
TEST: java/lang/RuntimeTests/exec/SleepyCat.java
TEST: java/lang/StrictMath/Atan2Tests.java
TEST: java/lang/StrictMath/Expm1Tests.java
TEST: java/lang/StrictMath/HyperbolicTests.java
TEST: java/lang/StrictMath/InverseTrigTests.java
TEST: java/lang/StrictMath/Log10Tests.java
TEST: java/lang/StrictMath/Log1pTests.java
TEST: java/lang/StrictMath/LogTests.java
TEST: java/lang/StrictMath/TrigTests.java
TEST: java/lang/StrictMath/ExhaustingTests.java
TEST: java/lang/RuntimeTests/exec/ConcurrentRead.java
TEST: java/lang/Thread/virtual/stress/GetStackTraceALotWhenPinned.java#id0
TEST: java/lang/Thread/virtual/stress/ParkALot.java#id0

jdk_lang_1 - failed due to garbeled characters
Failed test cases:
TEST: java/lang/ProcessBuilder/DestroyTest.java
TEST: java/lang/ProcessBuilder/Basic.java#id0
TEST: java/lang/ProcessHandle/TreeTest.java
TEST: java/lang/RuntimeTests/exec/SleepyCat.java
TEST: java/lang/StrictMath/Atan2Tests.java
TEST: java/lang/StrictMath/Expm1Tests.java
TEST: java/lang/StrictMath/HyperbolicTests.java
TEST: java/lang/StrictMath/InverseTrigTests.java
TEST: java/lang/StrictMath/Log10Tests.java
TEST: java/lang/StrictMath/Log1pTests.java
TEST: java/lang/StrictMath/LogTests.java
TEST: java/lang/StrictMath/TrigTests.java
TEST: java/lang/StrictMath/ExhaustingTests.java
TEST: java/lang/RuntimeTests/exec/ConcurrentRead.java
TEST: java/lang/Thread/virtual/stress/GetStackTraceALotWhenPinned.java#id0
TEST: java/lang/Thread/virtual/stress/ParkALot.java#id0

jdk_lang_j9_0 - failed due to garbeled characters
Failed test cases:
TEST: java/lang/ProcessBuilder/DestroyTest.java
TEST: java/lang/ProcessBuilder/Basic.java#id0
TEST: java/lang/ProcessHandle/TreeTest.java
TEST: java/lang/RuntimeTests/exec/SleepyCat.java
TEST: java/lang/StrictMath/Atan2Tests.java
TEST: java/lang/StrictMath/Expm1Tests.java
TEST: java/lang/StrictMath/HyperbolicTests.java
TEST: java/lang/StrictMath/InverseTrigTests.java
TEST: java/lang/StrictMath/Log10Tests.java
TEST: java/lang/StrictMath/Log1pTests.java
TEST: java/lang/StrictMath/LogTests.java
TEST: java/lang/StrictMath/TrigTests.java
TEST: java/lang/StrictMath/ExhaustingTests.java
TEST: java/lang/RuntimeTests/exec/ConcurrentRead.java
TEST: java/lang/Thread/virtual/stress/GetStackTraceALotWhenPinned.java#id0
TEST: java/lang/Thread/virtual/stress/ParkALot.java#id0

jdk_lang_j9_1 - failed due to garbeled characters
Failed test cases:
TEST: java/lang/ProcessBuilder/DestroyTest.java
TEST: java/lang/ProcessBuilder/Basic.java#id0
TEST: java/lang/ProcessHandle/TreeTest.java
TEST: java/lang/RuntimeTests/exec/SleepyCat.java
TEST: java/lang/StrictMath/Atan2Tests.java
TEST: java/lang/StrictMath/Expm1Tests.java
TEST: java/lang/StrictMath/HyperbolicTests.java
TEST: java/lang/StrictMath/InverseTrigTests.java
TEST: java/lang/StrictMath/Log1pTests.java
TEST: java/lang/StrictMath/Log10Tests.java
TEST: java/lang/StrictMath/LogTests.java
TEST: java/lang/StrictMath/TrigTests.java
TEST: java/lang/StrictMath/ExhaustingTests.java
TEST: java/lang/RuntimeTests/exec/ConcurrentRead.java
TEST: java/lang/Thread/virtual/stress/GetStackTraceALotWhenPinned.java#id0
TEST: java/lang/Thread/virtual/stress/ParkALot.java#id0

jdk_security2_0
Failed test cases:
TEST: javax/crypto/Cipher/TestGetInstance.java: garbeled output

jdk_security2_1
Failed test cases:
TEST: javax/crypto/Cipher/TestGetInstance.java: garbeled output

jdk_security4_0
Failed test cases:
TEST: sun/security/krb5/auto/Cleaners.java: KrbException: Additional pre-authentication required (25)

jdk_security4_1
Failed test cases:
TEST: sun/security/krb5/auto/Cleaners.java: KrbException: Additional pre-authentication required (25)

jdk_util_other_0 -
Failed test cases:
TEST: java/util/zip/DeInflate.java: garbeled characters

jdk_util_other_1 -
Failed test cases:
TEST: java/util/zip/DeInflate.java: garbeled characters

jdk_collections_0
Failed test cases:
TEST: java/util/Collections/ViewSynch.java: Timeout
TEST: java/util/concurrent/forkjoin/SubmissionTest.java: Timeout

jdk_collections_1
Failed test cases:
TEST: java/util/concurrent/ConcurrentLinkedQueue/WhiteBox.java
- garbeled charactes

jdk_concurrent_0
Failed test cases:
TEST: java/util/concurrent/forkjoin/SubmissionTest.java: Timeout

jdk_concurrent_1 - Test results: passed: 125; failed: 1; error: 1; excluded: 3; did not meet platform requirements: 1

  • TEST: java/util/concurrent/Executors/UnreferencedExecutor.java failed due to java.lang.OutOfMemoryError: Java heap space
  • TEST: java/util/concurrent/forkjoin/SubmissionTest.java failed due to timeout

jdk_foreign_0, jdk_foreign_1

TEST: java/foreign/TestUpcallException.java

AssertionError: Did not find 'Testing upcall exceptions' in stderr
expected [true] but found [false]

TEST: java/foreign/trivial/TestTrivialUpcall.java

AssertionError: Did not find 'wrong thread state for upcall' in stderr
expected [true] but found [false]

TEST: java/foreign/passheapsegment/TestPassHeapSegment.java

AssertionError: Did not find 'Heap segment not allowed' in stderr
expected [true] but found [false]

TEST: java/foreign/TestAddressDereference.java

AssertionError: Did not find 'alignment constraint for address' in stderr
expected [true] but found [false]

jdk_vector_float128_j9_0
jdk_vector_double128_j9_0
jdk_vector_int128_j9_0
jdk_vector_short128_j9_0
jdk_vector_byte128_j9_0
jdk_vector_long128_j9_0
jdk_vector_byte64_j9_0

  • Tests passed but were marked as failed because the path to grep was long
grep: FSUM9950 input lines truncated - result questionable
JDK21 z/OS extended.functional failures

extended.functional errors
https://hyc-runtimes-jenkins.swg-devops.com/job/Test_openjdk21_ibm_extended.functional_s390x_zos_Personal_testList_0/6/consoleText
FAILED test targets:
testDDRExt_General_0
testDDRExt_Callsites_0
testDDRExt_JITExt_0
testDDRExtJunit_StackMap_0
testDDRExtJunit_MonitorsAndDeadlock1_0
testDDRExtJunit_MonitorsAndDeadlock1_1
testDDRExtJunit_MonitorsAndDeadlock4_1
testDDRExtJunit_MonitorsAndDeadlock5_0
testDDRExtJunit_MonitorsAndDeadlock5_1
testDDRExtJunit_MonitorsAndDeadlock6_0
testDDRExtJunit_MonitorsAndDeadlock6_1
testDDRExtJunit_FindExtThread_0
cmdLineTester_modularityddrtests17_1
cmdLineTester_modularityddrtests17_2
cmdLineTester_modularityddrtests17_3
testSCCMLTests2_0
testSCCMLTests2_1
testSCCMLTests2_2
testSCCMLTests2_3
testSCCMLTests4_0
testSCCMLTests4_1
testSCCMLTests4_2
testSCCMLTests4_3
- failed due to: JVMPORT024E IEATDUMP failed because we couldn't allocate the dump dataset (check disk space and field permissions).
cmdLineTester_vmRuntimeState_0
- Being tracked by #22610

https://hyc-runtimes-jenkins.swg-devops.com/job/Test_openjdk21_ibm_extended.functional_s390x_zos_Personal_testList_2/1/console
FAILED test targets:
testDDRExtJunit_CollisionResilientHashtable_0
testDDRExtJunit_MonitorsAndDeadlock3_1
testDDRExtJunit_MonitorsAndDeadlock4_0
- failed due to : JVMPORT024E IEATDUMP failed because we couldn't allocate the dump dataset (check disk space and field permissions).

https://hyc-runtimes-jenkins.swg-devops.com/job/Test_openjdk21_ibm_extended.functional_s390x_zos_Personal_testList_1/6/consoleText
Build failed with a mix of garbeled output and check disk space errors

JDK21 z/OS extended.openjdk failures

extended.openjdk failures

https://hyc-runtimes-jenkins.swg-devops.com/job/Test_openjdk21_ibm_extended.openjdk_s390x_zos_Personal/6/console
FAILED test targets:
langtools_extpath_j9_0/langtools_extpath_j9_1: failed to get JDK properties

13:02:02  Exception while calling user-specified class: requires.VMProps
13:02:02  java.lang.UnsatisfiedLinkError: jdk/test/whitebox/WhiteBox.registerNatives()V
13:02:02  	at jdk.test.whitebox.WhiteBox.<clinit>(WhiteBox.java:71)
13:02:02  	at requires.VMProps.<clinit>(VMProps.java:73)
13:02:02  	at java.base/java.lang.Class.forNameImpl(Native Method)
13:02:02  	at java.base/java.lang.Class.forName(Class.java:375)
13:02:02  	at java.base/java.lang.Class.forName(Class.java:348)
13:02:02  	at com.sun.javatest.regtest.agent.GetJDKProperties.run(GetJDKProperties.java:78)
13:02:02  	at com.sun.javatest.regtest.agent.GetJDKProperties.main(GetJDKProperties.java:54)
serviceability_jvmti_j9_0/serviceability_jvmti_j9_1
	Failed test cases: 
		TEST: serviceability/jvmti/events/ThreadEnd/threadend01/threadend01.java tracked by https://github.ibm.com/runtimes/openj9-openjdk-jdk25-zos/issues/267
  		TEST: serviceability/jvmti/events/ThreadStart/threadstart01/threadstart01.java tracked by https://github.ibm.com/runtimes/openj9-openjdk-jdk25-zos/issues/267
  		TEST: serviceability/jvmti/vthread/VThreadNotifyFramePopTest/VThreadNotifyFramePopTest.java#default
  		TEST: serviceability/jvmti/vthread/VThreadNotifyFramePopTest/VThreadNotifyFramePopTest.java#no-vmcontinuations: timeout (https://github.ibm.com/runtimes/AutoTriage/issues/736)
  		TEST: serviceability/jvmti/vthread/ThreadStateTest/ThreadStateTest.java: timeout (https://github.ibm.com/runtimes/AutoTriage/issues/737)
    
jdk_other_1
	Failed test cases: 
		TEST: com/sun/jndi/dns/ConfigTests/TimeoutWithEmptyDatagrams.java: being tracked by https://github.ibm.com/runtimes/openj9-openjdk-jdk21-zos/issues/770
    
jdk_nio_0/jdk_nio_1
	Failed test cases: 
		TEST: java/nio/channels/DatagramChannel/AdaptorMulticasting.java: similar issue: https://github.ibm.com/runtimes/backlog/issues/1597 and https://github.ibm.com/runtimes/backlog/issues/1598
    	TEST: java/nio/channels/DatagramChannel/SocketOptionTests.java `threw exception: java.net.SocketException: EDC5111I Permission denied.`
    	TEST: java/nio/channels/FileChannel/Transfer2GPlus.java `No space left on device.`
    	TEST: java/nio/file/attribute/PosixFileAttributeView/Basic.java: `java.nio.file.FileSystemException: /tmp/name12306314877535314926/gus`
    	TEST: java/nio/file/Files/CopyAndMove.java: Assertion failure
13:50:51  java.lang.RuntimeException: Assertion failed
13:50:51  	at CopyAndMove.assertTrue(CopyAndMove.java:1201)
13:50:51  	at CopyAndMove.checkPosixAttributes(CopyAndMove.java:156)
13:50:51  	at CopyAndMove.copyAndVerify(CopyAndMove.java:702)
13:50:51  	at CopyAndMove.testCopyFileToFile(CopyAndMove.java:819)
13:50:51  	at CopyAndMove.main(CopyAndMove.java:66)
13:50:51  	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
13:50:51  	at java.base/java.lang.reflect.Method.invoke(Method.java:586)
13:50:51  	at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
13:50:51  	at java.base/java.lang.Thread.run(Thread.java:1600)
    	TEST: java/nio/file/Files/FileAttributes.java: `java.nio.file.FileSystemException: /tmp/name7263847423786966997/foo: EDC5139I Operation not permitted.`
    	TEST: java/nio/channels/vthread/BlockingChannelOps.java#default: garbled characters
    	TEST: java/nio/channels/vthread/BlockingChannelOps.java#direct-register: timeout
    	TEST: java/nio/channels/vthread/BlockingChannelOps.java#no-vmcontinuations: timeout, could be related to garbaled characters
		- Being tracked by https://github.ibm.com/runtimes/openj9-openjdk-jdk25-zos/issues/54
    
jdk_security3_0/jdk_security3_1
	Failed test cases: 
		TEST: com/sun/security/auth/callback/TextCallbackHandler/Default.java: `Execution failed: `main' threw exception: java.io.IOException: Cannot read from System.in`
    	TEST: sun/security/pkcs11/KeyStore/ClientAuth.java: Failed in `config ClientAuth.setUp(): failure`
    	TEST: sun/security/pkcs12/Bug6415637.java: Garbled output in stderr + `main' threw exception: java.security.UnrecoverableKeyException: Get Key failed: NULL from _pbe_crypt!
    	TEST: sun/security/provider/all/Deterministic.java: tracked by https://github.ibm.com/runtimes/openj9-openjdk-jdk21-zos/issues/649
    	TEST: sun/security/provider/PolicyFile/Alias.java tracked by https://github.ibm.com/runtimes/openj9-openjdk-jdk21-zos/issues/439
    	TEST: sun/security/provider/PolicyFile/EmailAddress.java `Exception in thread "main" java.util.ServiceConfigurationError: java.net.spi.URLStreamHandlerProvider: Provider com.ibm.crypto.ibmjcehybrid.provider.safkeyring.Provider could not be instantiated`
    	TEST: sun/security/ssl/SSLSocketImpl/NewSocketMethods.java `java.net.SocketException: EDC5111I Permission denied.`
    	TEST: sun/security/tools/keytool/KeyToolTest.java: similar to https://github.ibm.com/runtimes/openj9-openjdk-jdk25-zos/issues/156
15:01:52  STDERR:
15:01:52  java.lang.RuntimeException
15:01:52  	at jdk.test.lib.security.HumanInputStream.assertTrue(HumanInputStream.java:106)
15:01:52  	at jdk.test.lib.security.HumanInputStream$1Tester.testReaderReadline(HumanInputStream.java:132)
15:01:52  	at jdk.test.lib.security.HumanInputStream.test(HumanInputStream.java:147)
15:01:52  	at KeyToolTest.main(KeyToolTest.java:1837)
15:01:52  	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
15:01:52  	at java.base/java.lang.reflect.Method.invoke(Method.java:586)
15:01:52  	at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
15:01:52  	at java.base/java.lang.Thread.run(Thread.java:1600)
    	TEST: sun/security/util/Debug/DebugOptions.java: garbled output
    
jdk_text_0/jdk_text_1
	Failed test cases: 
		TEST: sun/text/resources/LocaleDataTest.java: failed with garbled characters
    
jdk_tools_openj9_DynamicLoadWarningTest_0/jdk_tools_openj9_DynamicLoadWarningTest_1
	Failed test cases: 
		TEST: com/sun/tools/attach/warnings/DynamicLoadWarningTest.java
		- Needs more investigation
    
jdk_imageio_0/jdk_imageio_1
	Failed test cases: 
		TEST: javax/imageio/plugins/jpeg/JPEGsNotAcceleratedTest.java
STDERR:
java.awt.HeadlessException: 
No X11 DISPLAY variable was set,
or no headful library support was found,
but this program performed an operation which requires it.
	at java.desktop/java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:164)
	at java.desktop/java.awt.Window.<init>(Window.java:553)
	at java.desktop/java.awt.Frame.<init>(Frame.java:428)
	at java.desktop/java.awt.Frame.<init>(Frame.java:393)
	at JPEGsNotAcceleratedTest.main(JPEGsNotAcceleratedTest.java:307)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:586)
	at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
	at java.base/java.lang.Thread.run(Thread.java:1600)
jdk_security_infra_zos_0
jdk_security_infra_zos_1
- Test results: no tests selected

TOTAL: 102 EXECUTED: 32 PASSED: 15 FAILED: 17 DISABLED: 51 SKIPPED: 19
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

@VermaSh

VermaSh commented May 12, 2026

Copy link
Copy Markdown
Contributor Author

x86-64 windows failures are already being tracked (#23589 (comment))

@r30shah

r30shah commented May 13, 2026

Copy link
Copy Markdown
Contributor

@VermaSh - Do you think z/OS failures that you looked into are related to this change ?

@VermaSh

VermaSh commented May 13, 2026

Copy link
Copy Markdown
Contributor Author

Most of them were already being tracked. There were 3 which I think are new failures, but don't look related to this PR.

Specjbb failure (new internal issue)

19:21:06  ----------- Stack Backtrace -----------
19:21:06  protectedIntrospectBacktraceSymbols+0xe5df9ee0 (0x0000000000000000)
19:21:06  omrsig_protect+0xe5df1bd0 (0x0000000000000000)
19:21:06  omrintrospect_backtrace_symbols_ex+0xe5df9e18 (0x0000000000000000)
19:21:06  generateDiagnosticFiles+0x8c5a3540 (0x0000000000000000)
19:21:06  omrsig_protect+0xe5df1bd0 (0x0000000000000000)
19:21:06  structuredSignalHandler+0x8c5a2220 (0x0000000000000000)
19:21:06  mainSynchSignalHandler+0xe5df5600 (0x0000000000000000)
19:21:06  __zerro+0xe61c7868 (0x0000000000000000)
19:21:06  __zerros+0xe61c7b98 (0x0000000000000000)
19:21:06  CEEHDSP+0xe66d68e0 (0x0000000000000000)
19:21:06  CEEOSIGJ+0xe641c160 (0x0000000000000000)
19:21:06  CELQHROD+0xe66c2ed0 (0x0000000000000000)
19:21:06  CEEOSIGG+0xe64231a0 (0x0000000000000000)
19:21:06  CELQHROD+0xe66c2ed0 (0x0000000000000000)
19:21:06  MM_ForwardedHeader::copyOrWaitOutline(J9Object*)+0xe388a5e8 (0x0000000000000000)
19:21:06  MM_Scavenger::incrementalScavengeObjectSlots(MM_EnvironmentStandard*,J9Object*,MM_CopyScanC...+0xe37a4ef8 (0x0000000000000000)
19:21:06  MM_Scavenger::incrementalScanCacheBySlot(MM_EnvironmentStandard*,MM_CopyScanCacheStandard*)+0xe37a5b20 (0x0000000000000000)
19:21:06  (0x0000000000000000)
19:21:06  MM_MemorySubSpace::payAllocationTax(MM_EnvironmentBase*,MM_MemorySubSpace*,MM_AllocateDescr...+0xe3846b18 (0x0000000000000000)
19:21:06  MM_MemorySubSpace::payAllocationTax(MM_EnvironmentBase*,MM_MemorySubSpace*,MM_AllocateDescr...+0xe3846b18 (0x0000000000000000)
19:21:06  MM_MemorySubSpace::payAllocationTax(MM_EnvironmentBase*,MM_AllocateDescription*)+0xe3846b70 (0x0000000000000000)
19:21:06  MM_AllocateInitialization::allocateAndInitializeObject(OMR_VMThread*)+0xe377b6f8 (0x0000000000000000)
19:21:06  OMR_GC_AllocateObject(OMR_VMThread*,MM_AllocateInitialization*)+0xe377b888 (0x0000000000000000)
19:21:06  J9AllocateObjectNoGC+0xe3a8d950 (0x0000000000000000)

floatSanityTests failure (new internal issue)

16:15:07  FAILED: ulpAcosTest
16:15:07  java.lang.AssertionError: testing 1ULP functions: double Math.acos( 0.615121130270634 ) == 0.9082567352279834 expected [0.9082567352279834] but found [0.9082567352279836]
16:15:07  	at org.testng.Assert.fail(Assert.java:96)
16:15:07  	at org.testng.Assert.failNotEquals(Assert.java:776)
16:15:07  	at org.testng.Assert.assertEquals(Assert.java:489)
16:15:07  	at org.openj9.test.floatsanity.custom.Check1ULPMath.ulpAcosTest(Check1ULPMath.java:110)
16:15:07  	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
16:15:07  	at java.base/java.lang.reflect.Method.invoke(Method.java:586)
16:15:07  	at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:124)
16:15:07  	at org.testng.internal.Invoker.invokeMethod(Invoker.java:580)
16:15:07  	at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:716)
16:15:07  	at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:988)
16:15:07  	at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
16:15:07  	at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)
16:15:07  	at org.testng.TestRunner.privateRun(TestRunner.java:648)
16:15:07  	at org.testng.TestRunner.run(TestRunner.java:505)
16:15:07  	at org.testng.SuiteRunner.runTest(SuiteRunner.java:455)
16:15:07  	at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:450)
16:15:07  	at org.testng.SuiteRunner.privateRun(SuiteRunner.java:415)
16:15:07  	at org.testng.SuiteRunner.run(SuiteRunner.java:364)
16:15:07  	at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
16:15:07  	at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:84)
16:15:07  	at org.testng.TestNG.runSuitesSequentially(TestNG.java:1208)
16:15:07  	at org.testng.TestNG.runSuitesLocally(TestNG.java:1137)
16:15:07  	at org.testng.TestNG.runSuites(TestNG.java:1049)
16:15:07  	at org.testng.TestNG.run(TestNG.java:1017)
16:15:07  	at org.testng.TestNG.privateMain(TestNG.java:1354)
16:15:07  	at org.testng.TestNG.main(TestNG.java:1323)

com/sun/tools/attach/warnings/DynamicLoadWarningTest.java failure

15:14:51  STDERR:
15:14:51  com.sun.tools.attach.AgentLoadException: ATTACH_ERR AgentLoadException JvmtiAgent1:
15:14:51  	at jdk.attach/com.ibm.tools.attach.attacher.OpenJ9VirtualMachine.parseResponse(OpenJ9VirtualMachine.java:385)
15:14:51  	at jdk.attach/com.ibm.tools.attach.attacher.OpenJ9VirtualMachine.loadAgentLibrary(OpenJ9VirtualMachine.java:289)
15:14:51  	at jdk.attach/com.sun.tools.attach.VirtualMachine.loadAgentLibrary(VirtualMachine.java:377)
15:14:51  	at DynamicLoadWarningTest.lambda$loadJvmtiAgent1$0(DynamicLoadWarningTest.java:110)
15:14:51  	at DynamicLoadWarningTest$AppRunner.lambda$run$0(DynamicLoadWarningTest.java:262)
15:14:51  	at java.base/java.lang.Thread.run(Thread.java:1600)
15:14:51  org.opentest4j.AssertionFailedError: Attach or action failed, see log for details ==> expected: <true> but was: <false>
15:14:51  	at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
15:14:51  	at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
15:14:51  	at org.junit.jupiter.api.AssertTrue.failNotTrue(AssertTrue.java:63)
15:14:51  	at org.junit.jupiter.api.AssertTrue.assertTrue(AssertTrue.java:36)
15:14:51  	at org.junit.jupiter.api.Assertions.assertTrue(Assertions.java:214)
15:14:51  	at DynamicLoadWarningTest$AppRunner.run(DynamicLoadWarningTest.java:286)
15:14:51  	at DynamicLoadWarningTest$AppRunner.stderrShouldContain(DynamicLoadWarningTest.java:295)
15:14:51  	at DynamicLoadWarningTest.testLoadOneJvmtiAgent(DynamicLoadWarningTest.java:126)
15:14:51  	at java.base/java.lang.reflect.Method.invoke(Method.java:586)
15:14:51  	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
15:14:51  	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
15:14:51  	at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179)
15:14:51  	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
15:14:51  	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
JDK21 z/OS sanity.functional failures

FAILED test targets:
floatSanityTests_0
floatSanityTests_1
floatSanityTests_2
floatSanityTests_3
floatSanityTests_4
floatSanityTests_5
- https://github.ibm.com/runtimes/openj9-openjdk-jdk21-zos/issues/971
SPECjbb2015_7
- https://github.ibm.com/runtimes/openj9-jit-z/issues/1082

FAILED test targets:
shrtest_zos_0,shrtest_zos_1,shrtest_zos_2,shrtest_zos_3

16:22:28  ----------------------------------------
16:22:28  Protect Shared Cache Data Test
16:22:28  ----------------------------------------
16:22:28  
16:22:28  
16:22:28  testProtectSharedCacheData test begin...
16:22:28  
16:22:28  
16:22:28  	INFO: /jenkins/workspace/Build_JDK21_s390x_zos_Personal/openj9/runtime/tests/shared/ProtectSharedCacheDataTests.cpp(135) testProtectSharedCacheData_test1 Case mprotect=default or mprotect=nopartialpages
16:22:28  
16:22:28  	INFO: /jenkins/workspace/Build_JDK21_s390x_zos_Personal/openj9/runtime/tests/shared/OpenCacheHelper.cpp(50) openTestCache Opening test cache
16:22:28  	INFO: /jenkins/workspace/Build_JDK21_s390x_zos_Personal/openj9/runtime/tests/shared/OpenCacheHelper.cpp(235) openTestCache Done opening test cache
16:22:28  	INFO: /jenkins/workspace/Build_JDK21_s390x_zos_Personal/openj9/runtime/tests/shared/ProtectSharedCacheDataTests.cpp(206) testProtectSharedCacheData_test1 Correctly protected a newly added ROMClasses
16:22:28  	INFO: /jenkins/workspace/Build_JDK21_s390x_zos_Personal/openj9/runtime/tests/shared/ProtectSharedCacheDataTests.cpp(228) testProtectSharedCacheData_test1 Correctly protected shared cache data after discovering cache update when not holding write mutex
16:22:28  	INFO: /jenkins/workspace/Build_JDK21_s390x_zos_Personal/openj9/runtime/tests/shared/ProtectSharedCacheDataTests.cpp(273) testProtectSharedCacheData_test1 Correctly protected shared cache metadata after adding AOT data
16:22:28  	INFO: /jenkins/workspace/Build_JDK21_s390x_zos_Personal/openj9/runtime/tests/shared/ProtectSharedCacheDataTests.cpp(304) testProtectSharedCacheData_test1 Correctly unprotected/protected shared cache metadata during cache lock/unlock operation
16:22:28  	INFO: /jenkins/workspace/Build_JDK21_s390x_zos_Personal/openj9/runtime/tests/shared/OpenCacheHelper.cpp(50) openTestCache Opening test cache
16:22:28  	INFO: /jenkins/workspace/Build_JDK21_s390x_zos_Personal/openj9/runtime/tests/shared/OpenCacheHelper.cpp(235) openTestCache Done opening test cache
16:22:28  	INFO: /jenkins/workspace/Build_JDK21_s390x_zos_Personal/openj9/runtime/tests/shared/ProtectSharedCacheDataTests.cpp(337) testProtectSharedCacheData_test1 Correctly protected existing ROMClasses when opening an existing cache
16:22:28  
16:22:28  	INFO: /jenkins/workspace/Build_JDK21_s390x_zos_Personal/openj9/runtime/tests/shared/ProtectSharedCacheDataTests.cpp(339) testProtectSharedCacheData_test1 Done
16:22:28  
16:22:28  	INFO: /jenkins/workspace/Build_JDK21_s390x_zos_Personal/openj9/runtime/tests/shared/ProtectSharedCacheDataTests.cpp(385) testProtectSharedCacheData_test2 Case mprotect=partialpages
16:22:28  
16:22:28  	INFO: /jenkins/workspace/Build_JDK21_s390x_zos_Personal/openj9/runtime/tests/shared/OpenCacheHelper.cpp(50) openTestCache Opening test cache
16:22:28  	INFO: /jenkins/workspace/Build_JDK21_s390x_zos_Personal/openj9/runtime/tests/shared/OpenCacheHelper.cpp(235) openTestCache Done opening test cache
16:22:28  	ERROR: /jenkins/workspace/Build_JDK21_s390x_zos_Personal/openj9/runtime/tests/shared/ProtectSharedCacheDataTests.cpp(458) testProtectSharedCacheData_test2 After calling addDummyROMClass() the incorrect size was protected. Expected 16384, but 8192 was protected
16:22:28  	INFO: /jenkins/workspace/Build_JDK21_s390x_zos_Personal/openj9/runtime/tests/shared/ProtectSharedCacheDataTests.cpp(672) testProtectSharedCacheData_test3 Case mprotect=onfind
16:22:28  
16:22:28  	INFO: /jenkins/workspace/Build_JDK21_s390x_zos_Personal/openj9/runtime/tests/shared/OpenCacheHelper.cpp(50) openTestCache Opening test cache
16:22:28  	INFO: /jenkins/workspace/Build_JDK21_s390x_zos_Personal/openj9/runtime/tests/shared/OpenCacheHelper.cpp(235) openTestCache Done opening test cache
16:22:28  	ERROR: /jenkins/workspace/Build_JDK21_s390x_zos_Personal/openj9/runtime/tests/shared/ProtectSharedCacheDataTests.cpp(736) testProtectSharedCacheData_test3 After calling runEntryPointChecks() the incorrect size was protected. Expected 16384, but 8192 was protected
16:22:28  Result of test testProtectSharedCacheData: FAILED
cmdLineTester_GCCheck_0
cmdLineTester_GCCheck_1
cmdLineTester_GCCheck_2
cmdLineTester_GCCheck_3
- Not enough space
cmdLineTester_jfrEvents_0
17:30:03  Testing: test jfr system process - approx 30 seconds
17:30:03  Test start time: 2026/05/04 21:30:03 Greenwich Mean Time
17:30:03  Running command: /home/jenkins/workspace/Test_openjdk21_ibm_sanity.functional_s390x_zos_Personal_testList_1/jdkbinary/j2sdk-image/bin/jfr print --xml --events "SystemProcess" defaultJ9recording.jfr
17:30:03  Time spent starting: 9 milliseconds
17:30:05  Time spent executing: 2096 milliseconds
17:30:05  Test result: FAILED
17:30:05  Output from test:
17:30:05   [OUT] <?xml version="1.0" encoding="UTF-8"?>
17:30:05   [OUT] <recording xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
17:30:05   [OUT]   <events>
17:30:05   [OUT]   </events>
17:30:05   [OUT] </recording>
17:30:05  >> Required condition was found: [Output match: http://www.w3.org/2001/XMLSchema-instance]
17:30:05  >> Success condition was not found: [Output match: jdk.SystemProcess]
17:30:05  >> Required condition was not found: [Output match: pid]
17:30:05  >> Required condition was not found: [Output match: commandLine]
17:30:05  >> Failure condition was not found: [Output match: jfr print: could not read recording]
- tracked by https://github.com/eclipse-openj9/openj9/issues/22312

@VermaSh

VermaSh commented May 13, 2026

Copy link
Copy Markdown
Contributor Author

Found an internal issue for com/sun/tools/attach/warnings/DynamicLoadWarningTest.java so that leaves us with just 2 new, but unrelated, failures

@r30shah r30shah left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Based on #23589 (comment), I do feel the z/OS failures would be unrelated given that this change is more on control heuristics side and based on the testing done in past, I approve the changes.

@joransiu - If you are OK with the changes, can we merge this ?

@joransiu

Copy link
Copy Markdown
Member

@r30shah : I agree, the failures don't appear to be related to these changes. I'm OK with these changes.

@r30shah

r30shah commented May 13, 2026

Copy link
Copy Markdown
Contributor

Merging - as per comment in #23589 (comment) and #23589 (review)

@r30shah
r30shah merged commit 2bbfbf7 into eclipse-openj9:master May 13, 2026
26 of 28 checks passed
#define j9sysinfo_os_has_feature(param1,param2) OMRPORT_FROM_J9PORT(privatePortLibrary)->sysinfo_os_has_feature(OMRPORT_FROM_J9PORT(privatePortLibrary),param1,param2)
#define j9sysinfo_get_CPU_load(param1) OMRPORT_FROM_J9PORT(privatePortLibrary)->sysinfo_get_CPU_load(OMRPORT_FROM_J9PORT(privatePortLibrary),param1)
#if defined(J9ZOS390)
#define j9sysinfo_get_CPU_capacity(param1) OMRPORT_FROM_J9PORT(privatePortLibrary)->sysinfo_get_CPU_load(OMRPORT_FROM_J9PORT(privatePortLibrary),param1)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be using sysinfo_get_CPU_capacity rather than sysinfo_get_CPU_load?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ahh, yes that should be sysinfo_get_CPU_capacity. I'll open an PR to fix that

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR with the fix: #23915

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants