RFR: 8356192: Enable AOT code caching only on supported platforms

Martin Doerr mdoerr at openjdk.org
Fri May 9 22:29:51 UTC 2025


On Fri, 9 May 2025 21:53:24 GMT, Vladimir Kozlov <kvn at openjdk.org> wrote:

> @TheRealMDoerr reported failures in `runtime/cds/appcds` testing on PPC64 after [JDK-8350209](https://bugs.openjdk.org/browse/JDK-8350209) integration.
> 
> AOT code caching should be limited to supported platforms: x64 and aarch64.
> 
> Testing: GHA

Fixing it should also be possible. See https://github.com/openjdk/jdk/pull/25143.
On the other hand, this feature is probably not important to have on PPC64. So, disabling `AOTAdapterCaching` should be ok. However, we also need to disable the tests if we decide to do that.


java.lang.RuntimeException: 'Adapters:  total' missing from stdout/stderr
	at jdk.test.lib.process.OutputAnalyzer.shouldContain(OutputAnalyzer.java:253)
	at AOTCodeFlags$Tester.checkExecution(AOTCodeFlags.java:101)
	at jdk.test.lib.cds.CDSAppTester.executeAndCheck(CDSAppTester.java:203)
	at jdk.test.lib.cds.CDSAppTester.createAOTCache(CDSAppTester.java:297)
	at jdk.test.lib.cds.CDSAppTester.runAOTWorkflow(CDSAppTester.java:431)
	at jdk.test.lib.cds.CDSAppTester.run(CDSAppTester.java:407)
	at AOTCodeFlags.main(AOTCodeFlags.java:52)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
	at java.base/java.lang.reflect.Method.invoke(Method.java:565)
	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:335)
	at java.base/java.lang.Thread.run(Thread.java:1447)

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

PR Review: https://git.openjdk.org/jdk/pull/25158#pullrequestreview-2829795294


More information about the hotspot-compiler-dev mailing list