On 14/05/2020 21:12, Mandy Chung wrote:
MethodHandles::privateLookupIn should prepare for being called during
early startup when the module of java.base classes are not yet
assigned. This bug is uncovered by panama prototype converting NIO to
use memory access API.
The fix is very simple and move the call to Module::isNamed only if
the caller module and target module are different:
http://cr.openjdk.java.net/~mchung/jdk15/webrevs/8244961/webrev.00/
I think this is a bug I left in JDK 9, sorry about that. In general
there should be very little code executed before the loaded classes are
patched to in java.base. The exception is with exploded where a lot of
library code gets executed when find the (exploded) module modules. The
change looks good.
-Alan