JDK-8209063 : [AOT] Testcases fails to throw ArrayStoreException
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 9,10,11,12
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2018-08-07
  • Updated: 2023-07-21
  • Resolved: 2023-07-21
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 12
12Resolved
Related Reports
Duplicate :  
Description
please check comments section for steps to reproduce the issue.
Comments
Pending graal update
10-09-2018

Fixed upstream: https://github.com/oracle/graal/commit/d54475091ffa0c6a8e545fa06bc81a25077f995f
07-09-2018

So there is the code: │ File: vm/aastore00101m031.java 1 │ package vm; 2 │ 3 │ public class aastore00101m031 { 4 │ public static boolean run() { 5 │ Object[] createIntfArray = SupplierHolder.createIntfArray(); 6 │ byte createByte = SupplierHolder.createByte(); 7 │ createIntfArray[createByte] = SupplierHolder.createObject(); 8 │ return true; 9 │ } 10 │ 11 │ public static void main(String[] args) { 12 │ run(); 13 │ } 14 │ } The test creates an array of interfaces and tries to assign a j.l.Object to an element of that array.
06-09-2018

Adding two more failing test cases. =========================== vm/instr/aastore/aastore011/aastore01102m1/aastore01102m1.html vm/instr/aastore/aastore016/aastore01603m1/aastore01603m1.html 1. create "rameshbase.so" aot library as mentioned in above comments. 2. download arraystore.zip (in attachment) to current directory. 3. execute the following commands on the command line. compile with 1.8 javac vm_aasotre/*.java NORMAL RUN ================================== java -cp vm_aastore aastore01102m1 Passed with runtime exception: java.lang.ArrayStoreException: java.lang.Object CREATE AOTLibrary ================== jaotc --output ../solibs/arraystore.so --directory vm_aastore RUN WITH AOTLibrary ======================== java -cp vm_aastore -XX:+UnlockDiagnosticVMOptions -XX:-PrintAOT -XX:+UseAOTStrictLoading -XX:AOTLibrary="solibs/arraystore.so,solibs/rameshbase.so" aastore01102m1 Failed to reject invalid class aastore01102m11n
09-08-2018

ILW = Expected ArrayStoreException is not thrown, specialized tests with AOT compiled java.base, don't use AOT = HMM = P3 Vladimir, could you please have a look or re-assign? Thanks.
09-08-2018

Most likely Graal issue. Since it is not new issue (present in jdk 9 and 10) I deferring it to 12.
07-08-2018