congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
SetThreadSuspensionEnabledNode
Code IndexAdd Tabnine to your IDE (free)

How to use
SetThreadSuspensionEnabledNode
in
com.oracle.truffle.api.debug

Best Java code snippets using com.oracle.truffle.api.debug.SetThreadSuspensionEnabledNode (Showing top 4 results out of 315)

origin: com.oracle.truffle/truffle-api

protected abstract void execute(boolean suspensionEnabled, DebuggerSession[] sessions, long threadId);
origin: org.graalvm.truffle/truffle-api

protected abstract void execute(boolean suspensionEnabled, DebuggerSession[] sessions, long threadId);
origin: com.oracle.truffle/truffle-api

boolean executeBreakCondition(VirtualFrame frame, DebuggerSession[] sessions) {
  if ((conditionSnippet == null && conditionCallNode == null) || !conditionUnchanged.isValid()) {
    CompilerDirectives.transferToInterpreterAndInvalidate();
    initializeConditional(frame.materialize());
  }
  Object result;
  try {
    suspensionEnabledNode.execute(false, sessions);
    if (conditionSnippet != null) {
      result = conditionSnippet.execute(frame);
    } else {
      result = conditionCallNode.call(EMPTY_ARRAY);
    }
  } finally {
    suspensionEnabledNode.execute(true, sessions);
  }
  if (!(result instanceof Boolean)) {
    CompilerDirectives.transferToInterpreter();
    throw new IllegalArgumentException("Unsupported return type " + result + " in condition.");
  }
  return (Boolean) result;
}
origin: org.graalvm.truffle/truffle-api

boolean executeBreakCondition(VirtualFrame frame, DebuggerSession[] sessions) {
  if ((conditionSnippet == null && conditionCallNode == null) || !conditionUnchanged.isValid()) {
    CompilerDirectives.transferToInterpreterAndInvalidate();
    initializeConditional(frame.materialize());
  }
  Object result;
  try {
    suspensionEnabledNode.execute(false, sessions);
    if (conditionSnippet != null) {
      result = conditionSnippet.execute(frame);
    } else {
      result = conditionCallNode.call(EMPTY_ARRAY);
    }
  } finally {
    suspensionEnabledNode.execute(true, sessions);
  }
  if (!(result instanceof Boolean)) {
    CompilerDirectives.transferToInterpreter();
    throw new IllegalArgumentException("Unsupported return type " + result + " in condition.");
  }
  return (Boolean) result;
}
com.oracle.truffle.api.debugSetThreadSuspensionEnabledNode

Javadoc

This node sets thread-local enabled suspension flag. It uses DebuggerSession's ThreadLocal field, which is cached in 10 threads for fast access.

Most used methods

  • execute

Popular in Java

  • Reactive rest calls using spring rest template
  • requestLocationUpdates (LocationManager)
  • findViewById (Activity)
  • putExtra (Intent)
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • JCheckBox (javax.swing)
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now