Class ThreadLocalAction.Access

java.lang.Object
com.oracle.truffle.api.ThreadLocalAction.Access
Enclosing class:
ThreadLocalAction

public abstract static class ThreadLocalAction.Access extends Object
Since:
21.1
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Access(Object secret)
    Constructor for framework use only.
    protected
    Access(org.graalvm.polyglot.impl.AbstractPolyglotImpl secret)
    Constructor for framework use only.
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract Node
    Returns the current node location executing on this thread.
    abstract Thread
    Returns the thread where this thread local action is running on.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Access

      protected Access(Object secret)
      Constructor for framework use only.
      Since:
      23.1
    • Access

      protected Access(org.graalvm.polyglot.impl.AbstractPolyglotImpl secret)
      Constructor for framework use only.
      Since:
      21.1
  • Method Details

    • getLocation

      public abstract Node getLocation()
      Returns the current node location executing on this thread. The return value is guaranteed to be non-null.
      Since:
      21.1
    • getThread

      public abstract Thread getThread()
      Returns the thread where this thread local action is running on. Currently this always returns Thread.currentThread(). See the safepoint tutorial for further details on our plans.
      Since:
      21.1