RFR(XS): 8149076: [JVMCI] missing ResourceMark in JVMCIRuntime::initialize_HotSpotJVMCIRuntime

Tom Rodriguez tom.rodriguez at oracle.com
Fri Feb 5 01:57:58 UTC 2016

https://bugs.openjdk.java.net/browse/JDK-8149076 <https://bugs.openjdk.java.net/browse/JDK-8149076>http://cr.openjdk.java.net/~never/8149076/webrev/ <http://cr.openjdk.java.net/~never/8149076/webrev/>

There's no explicit ResourceMark in JVMCIRuntime::initialize_HotSpotJVMCIRuntime but generally callers have one that it can use. However calling JVMCI.getRuntime() from a newly created thread will assert because there doesn't happen to be a containing resource mark. It should just have it's own.  I also modified to catch this case JVM_GetJVMCIRuntimeTest test to catch this case which required removing the unnecessary use of reflection, since this also introduced a containing ResourceMark that made the problem disappear.  Tested with test case.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/hotspot-compiler-dev/attachments/20160204/9727b74d/attachment.html>

More information about the hotspot-compiler-dev mailing list