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

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

XMLWordPrintable

        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.

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

                Created:
                Updated:
                Resolved: