RFR(M) 8168792: [AOT] problems in MethodHandle with aot-compiled java.base

Igor Veresov 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/>


igor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/hotspot-compiler-dev/attachments/20161220/28bc3c1f/attachment.html>


More information about the hotspot-compiler-dev mailing list