RFR(XS): 8058536 java/lang/instrument/NativeMethodPrefixAgent.java fails due to VirtualMachineError: out of space in CodeCache for method handle intrinsic
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.
More information about the hotspot-compiler-dev