Tabnine Logo
TruffleLocator$Response.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
com.oracle.truffle.api.impl.TruffleLocator$Response
constructor

Best Java code snippets using com.oracle.truffle.api.impl.TruffleLocator$Response.<init> (Showing top 3 results out of 315)

origin: org.graalvm.truffle/truffle-api

/**
 * Creates the set of classloaders to be used by the system.
 *
 * @return set of classloaders to search registrations in
 */
public static Set<ClassLoader> loaders() {
  Iterable<TruffleLocator> allLocators;
  TruffleLocator locator = Truffle.getRuntime().getCapability(TruffleLocator.class);
  if (locator != null) {
    allLocators = Collections.singleton(locator);
  } else {
    allLocators = Collections.emptyList();
  }
  Set<ClassLoader> found = new LinkedHashSet<>();
  Response response = new Response(found);
  for (TruffleLocator test : allLocators) {
    test.locate(response);
  }
  found.add(ClassLoader.getSystemClassLoader());
  found.add(TruffleLocator.class.getClassLoader());
  return found;
}
origin: org.graalvm.truffle/truffle-api

static void initializeNativeImageTruffleLocator() {
  assert TruffleOptions.AOT : "Only supported in AOT mode.";
  if (nativeImageLocator != null) {
    if (ImageInfo.inImageBuildtimeCode() || NATIVE_IMAGE_LOCATOR_INITIALIZED.compareAndSet(false, true)) {
      nativeImageLocator.locate(new Response(new HashSet<>()));
    }
  }
}
origin: com.oracle.truffle/truffle-api

/**
 * Creates the set of classloaders to be used by the system.
 *
 * @return set of classloaders to search registrations in
 */
public static Set<ClassLoader> loaders() {
  Iterable<TruffleLocator> allLocators;
  TruffleLocator locator = Truffle.getRuntime().getCapability(TruffleLocator.class);
  if (locator != null) {
    allLocators = Collections.singleton(locator);
  } else {
    allLocators = Collections.emptyList();
  }
  Set<ClassLoader> found = new LinkedHashSet<>();
  Response response = new Response(found);
  for (TruffleLocator test : allLocators) {
    test.locate(response);
  }
  found.add(ClassLoader.getSystemClassLoader());
  found.add(TruffleLocator.class.getClassLoader());
  return found;
}
com.oracle.truffle.api.implTruffleLocator$Response<init>

Popular methods of TruffleLocator$Response

    Popular in Java

    • Reading from database using SQL prepared statement
    • compareTo (BigDecimal)
    • getSharedPreferences (Context)
    • startActivity (Activity)
    • BufferedImage (java.awt.image)
      The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
    • FileOutputStream (java.io)
      An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
    • Path (java.nio.file)
    • Date (java.util)
      A specific moment in time, with millisecond precision. Values typically come from System#currentTime
    • TimerTask (java.util)
      The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
    • JTextField (javax.swing)
    • Github Copilot alternatives
    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