JDK-8215399 : [JVMCI] release JNI handles in shared library properly
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 13
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2018-12-14
  • Updated: 2019-04-29
  • Resolved: 2019-04-29
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 13
13Resolved
Related Reports
Blocks :  
Duplicate :  
Description
Interfacing with the JVMCI shared library uses JNI which means calls into the shared library from the VM that return object values will be holding onto a local JNI handle. To release this handle, the call needs to be in the scope of a JNI local handles frame that releases the local handles when the scope exits.
Comments
Okay, let's do that. If there are other jvmci changes that need to be ported, please file a separate bug.
29-04-2019

This is fixed in libgraal JVMCI changes port JDK-8220623 and will be pushed as part of it: http://hg.openjdk.java.net/metropolis/dev/file/a2c2301e93b0/src/hotspot/share/jvmci/jvmciEnv.hpp#l164 I think we can close it as duplicate.
26-04-2019

This is one of a number of JVMCI changes that need to be ported from jvmci-8. I'd appreciate it if you could re-assign to someone else.
26-04-2019

Doug, do you plan to push this into JDK 13 jvmci or should we take care of it? Feel free to re-assign. Thanks.
26-04-2019

https://github.com/graalvm/graal-jvmci-8/commit/b7efc8972e6465f73877f79b8a333c768f16075a
18-12-2018

ILW = JVMCI JNI calls do not properly release handles, with JVMCI shared library, no workaround = MLH = P4
17-12-2018