JDK-7004582 : Add GetLocalInstance() function to JVMTI 1.2
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: jvmti
  • Affected Version: hs20
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2010-12-03
  • Updated: 2017-05-16
  • Resolved: 2011-03-08
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 6 JDK 7 Other
6u25Fixed 7Fixed hs20Fixed
Related Reports
Relates :  
Relates :  
Description
Add GetLocalInstance function to JVMTI 1.2:

jvmtiError GetLocalInstance(jvmtiEnv* env, jthread thread, jint depth, jobject* value_ptr);

Calling GetLocalInstance() is equivalent to calling GetLocalObject() call for slot 0 except:  
(1) A call to GetLocalInstance() succeeds and retrieves an object out of a native frame where GetLocalObject() would return JVMTI_ERROR_OPAQUE_FRAME.
(2) GetLocalInstance() returns JVMTI_ERROR_INVALID_SLOT if called on a static method frame.

Comments
EVALUATION http://hg.openjdk.java.net/jdk7/build/hotspot/rev/09b4dd4f152b
25-12-2010

EVALUATION http://hg.openjdk.java.net/jdk7/hotspot-rt/hotspot/rev/09b4dd4f152b
09-12-2010