src/jdk.internal.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotJVMCIRuntime.java
changeset 58793 81ad1da857f6
parent 58282 03fce7b04b42
child 58851 f1e6442241ca
equal deleted inserted replaced
58790:5a9dba5a3eeb 58793:81ad1da857f6
   997     public boolean isCurrentThreadAttached() {
   997     public boolean isCurrentThreadAttached() {
   998         return compilerToVm.isCurrentThreadAttached();
   998         return compilerToVm.isCurrentThreadAttached();
   999     }
   999     }
  1000 
  1000 
  1001     /**
  1001     /**
       
  1002      * Gets the address of the HotSpot {@code JavaThread} C++ object for the current thread. This
       
  1003      * will return {@code 0} if called from an unattached JVMCI shared library thread.
       
  1004      */
       
  1005     public long getCurrentJavaThread() {
       
  1006         return compilerToVm.getCurrentJavaThread();
       
  1007     }
       
  1008 
       
  1009     /**
  1002      * Ensures the current thread is attached to the peer runtime.
  1010      * Ensures the current thread is attached to the peer runtime.
  1003      *
  1011      *
  1004      * @param asDaemon if the thread is not yet attached, should it be attached as a daemon
  1012      * @param asDaemon if the thread is not yet attached, should it be attached as a daemon
  1005      * @return {@code true} if this call attached the current thread, {@code false} if the current
  1013      * @return {@code true} if this call attached the current thread, {@code false} if the current
  1006      *         thread was already attached
  1014      *         thread was already attached