JDK-8319449 : compiler/print/CompileCommandPrintMemStat.java fails on Graal
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 22
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2023-11-05
  • Updated: 2023-11-27
  • Resolved: 2023-11-22
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 22
22 masterFixed
Related Reports
Relates :  
Description
CompileCommand: MemStat compiler/print/CompileCommandPrintMemStat$TestMain.method1 uintx MemStat = 2
Compilation memory statistics

Legend:
  total  : memory allocated via arenas while compiling
  NA     : ...how much in node arenas (if c2)
  RA     : ...how much in resource areas
  #nodes : ...how many nodes (if c2)
  time   : time of last compilation (sec)
  type   : compiler type
  #rc    : how often recompiled
  thread : compiler thread


total     NA        RA        #nodes  time    type  #rc thread              method
No entries.
];
 stderr: []
 exitValue = 0

java.lang.RuntimeException: '.*compiler/print/CompileCommandPrintMemStat\$TestMain::method1.*' missing from stdout/stderr
	at jdk.test.lib.process.OutputAnalyzer.shouldMatch(OutputAnalyzer.java:340)
	at compiler.print.CompileCommandPrintMemStat.test(CompileCommandPrintMemStat.java:71)
	at compiler.print.CompileCommandPrintMemStat.main(CompileCommandPrintMemStat.java:45)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:333)
	at java.base/java.lang.Thread.run(Thread.java:1570)
Comments
Changeset: 5d4a54bc Author: Sonia Zaldana Calles <szaldana@openjdk.org> Committer: Thomas Stuefe <stuefe@openjdk.org> Date: 2023-11-22 16:03:45 +0000 URL: https://git.openjdk.org/jdk/commit/5d4a54bccd9f7a163944f8fdf805af95b0ae1ade
22-11-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/16764 Date: 2023-11-21 14:52:02 +0000
21-11-2023

[~szaldana], Doug is currently on vacation. To reproduce, you need a JDK with Graal as JIT and run the test with "-ea -esa -XX:CompileThreshold=100 -XX:+UnlockExperimentalVMOptions -server -XX:-TieredCompilation -XX:+UnlockExperimentalVMOptions -XX:+UseJVMCICompiler".
21-11-2023

Hi @Douglas, could you please add steps to reproduce. Thanks!
20-11-2023

Test was added by JDK-8317683. [~stuefe], please have a look.
06-11-2023

ILW = Test fails (test bug), single test with Graal as JIT, no workaround = MLH = P4
06-11-2023