RFR(M) 8168792: [AOT] problems in MethodHandle with aot-compiled java.base
igor.veresov at oracle.com
Tue Dec 20 18:22:58 UTC 2016
This basically adds assertions support for AOT. It operates as follows:
1. By default the asserts are compiled away. That is the load from $assertionsDisabled is replaced with a true constant. At runtime if the user enables assertions for the class that is in the AOT library, that class is rejected and all AOT dependees are made not entrant and deopted.
2. If —enable-assertions flag is specified to jaotc, the loads from $assertionsDisabled are not folded. The resulting code is good for executing with or without assertions enabled.
Webrev: http://cr.openjdk.java.net/~iveresov/8168792/webrev.00/ <http://cr.openjdk.java.net/~iveresov/8168792/webrev.00/>
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the hotspot-compiler-dev