[aarch64-port-dev ] RFR: aarch64: Fix vm crash with CDS on
Ningsheng Jian
ningsheng.jian at linaro.org
Tue Jun 21 06:51:33 UTC 2016
Hi,
I found that the following hotspot jtreg test failures in aarch64
openjdk9 are caused by the same issue:
runtime/CDSCompressedKPtrs/CDSCompressedKPtrs.java
runtime/CDSCompressedKPtrs/XShareAuto.java
runtime/CompressedOops/CompressedClassPointers.java
runtime/NMT/NMTWithCDS.java
runtime/SharedArchiveFile/CdsSameObjectAlignment.java
runtime/SharedArchiveFile/SASymbolTableTest.java
runtime/SharedArchiveFile/SharedArchiveFile.java
runtime/SharedArchiveFile/SharedBaseAddress.java
runtime/SharedArchiveFile/SharedStrings.java
runtime/SharedArchiveFile/SharedStringsRunAuto.java
It is caused by incorrectly patching un-patchable bytecodes in CDS
image. Refer to [1] for details.
The crash can be reproduced by a simple hello-world case:
$ java -XX:+UnlockDiagnosticVMOptions -XX:SharedArchiveFile=1.jsa
-Xshare:dump Hello
$ java -XX:+UnlockDiagnosticVMOptions -XX:SharedArchiveFile=1.jsa
-Xshare:on Hello
The following patch can fix that crash and the jtreg tests above (and
no new failure found):
http://people.linaro.org/~ningsheng.jian/cds-fix/webrev.01/
Could someone please help to review and process this patch?
[1] https://bugs.openjdk.java.net/browse/JDK-8074345
Thanks,
Ningsheng
More information about the aarch64-port-dev
mailing list