Search in sources :

Example 1 with ThreadSuspension

use of com.oracle.truffle.api.debug.DebuggerSession.ThreadSuspension in project graal by oracle.

the class SetThreadSuspensionEnabledNode method getThreadSuspension.

@TruffleBoundary
protected ThreadSuspension getThreadSuspension(DebuggerSession[] sessions) {
    assert sessions.length == 1;
    ThreadSuspension threadSuspension = new ThreadSuspension(true);
    sessions[0].threadSuspensions.set(threadSuspension);
    return threadSuspension;
}
Also used : ThreadSuspension(com.oracle.truffle.api.debug.DebuggerSession.ThreadSuspension) TruffleBoundary(com.oracle.truffle.api.CompilerDirectives.TruffleBoundary)

Aggregations

TruffleBoundary (com.oracle.truffle.api.CompilerDirectives.TruffleBoundary)1 ThreadSuspension (com.oracle.truffle.api.debug.DebuggerSession.ThreadSuspension)1