RFR(XS): 8058536 java/lang/instrument/NativeMethodPrefixAgent.java fails due to VirtualMachineError: out of space in CodeCache for method handle intrinsic

Igor Veresov igor.veresov at oracle.com
Sat Sep 27 00:00:32 UTC 2014


The problem here is that the code of the agent (that has lambdas) starts executing early on during the initialization process because any compilers are created. Because of that, attempts to create compiled forms of MH intrinsics bail out. However, the creation of the compiled forms doesn’t require that compilers are present. One of the solutions is to create_native_wrapper() directly when we create a method for an intrinsic. 

JBS: https://bugs.openjdk.java.net/browse/JDK-8058536
Webrev: http://cr.openjdk.java.net/~iveresov/8058536/webrev.00


Thanks,
igor


More information about the hotspot-compiler-dev mailing list