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:43:33 UTC 2014

Thanks, Vladimir!


On Sep 26, 2014, at 5:40 PM, Vladimir Kozlov <vladimir.kozlov at oracle.com> wrote:

> Very nice.
> Thanks,
> Vladimir
> On 9/26/14 5:00 PM, Igor Veresov wrote:
>> 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