Skip to content

Commit

Permalink
Improved getJObjectValue ducumentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomas Zezula committed Jul 25, 2024
1 parent d10f818 commit 4738569
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -927,8 +927,10 @@ JavaType lookupTypeInternal(String name, HotSpotResolvedObjectType accessingType
/**
* Gets the {@code jobject} value wrapped by {@code peerObject}. The returned value is
* a JNI local reference whose lifetime is scoped by the nearest Java caller (from
* HotSpot's perspective). The current thread's state must be {@code _thread_in_native}.
* A call from the JVMCI shared library (e.g. libgraal) is in such a state.
* HotSpot's perspective). You can use {@code PushLocalFrame} and {@code PopLocalFrame} to
* shorten the lifetime of the reference. The current thread's state must be
* {@code _thread_in_native}. A call from the JVMCI shared library (e.g. libgraal) is in such
* a state.
*
* @param peerObject a reference to an object in the HotSpot heap
* @return the {@code jobject} value unpacked from {@code peerObject}
Expand Down

0 comments on commit 4738569

Please sign in to comment.