RFR: 8242152: SA does not include StackMapTables when dumping .class files [v3]

David Holmes dholmes at openjdk.org
Thu Jun 22 07:38:13 UTC 2023


On Thu, 22 Jun 2023 04:00:14 GMT, Daohan Qu <dqu at openjdk.org> wrote:

>> This patch adds `StackMapTable` for the class files generated by `clhsdb`'s `buildreplayjars` command. This bug manifests itself during my diagnosing [JDK-8309751](https://bugs.openjdk.org/browse/JDK-8309751) and needs to be fixed first.
>> 
>> I have run jtreg test `tier1-3` of release build on x86 linux finding only one failure in `tier2` caused by [JDK-8309214](https://bugs.openjdk.org/browse/JDK-8309214). `jtreg:test/hotspot/jtreg/serviceability` and `jtreg:test/jdk/sun/tools/` also passed.
>
> Daohan Qu has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Add a simple check

We see a tier1 failure on Linux-x64-debug running `serviceability/sa/ClhsdbDumpclass.java`

ava.lang.RuntimeException: Test ERROR java.lang.RuntimeException: 'StackMapTable:' missing from stdout/stderr
	at ClhsdbDumpclass.main(ClhsdbDumpclass.java:97)
	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)
Caused by: java.lang.RuntimeException: 'StackMapTable:' missing from stdout/stderr
	at jdk.test.lib.process.OutputAnalyzer.shouldContain(OutputAnalyzer.java:221)
	at ClhsdbDumpclass.main(ClhsdbDumpclass.java:92)
	... 4 more

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

PR Comment: https://git.openjdk.org/jdk/pull/14556#issuecomment-1602156383


More information about the serviceability-dev mailing list