Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8231828

[JVMCI] Add a getter of an address of current JavaThread into HotSpotJVMCIRuntime.

    XMLWordPrintable

    Details

      Backports

        Description

        In a context of a native JVMCI compiler we need an access to JNIEnv of the compiler thread to be able to define a class for JVMCI compiler MXBean and register the MXBean into MBeanServer.

        The proposed solution adds a HotSpotJVMCIRuntime.getCurrentJavaThread() method which returns the address of the HotSpot JavaThread C++ object for the current thread or 0L if called from an unattached JVMCI shared library thread.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                kvn Vladimir Kozlov
                Reporter:
                tzezula Tomáš Zezula
                Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: