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

How to use
VMThreadMTFeature
in
com.oracle.svm.hosted.thread

Best Java code snippets using com.oracle.svm.hosted.thread.VMThreadMTFeature (Showing top 3 results out of 315)

origin: com.oracle.substratevm/svm

@Override
public void beforeCompilation(BeforeCompilationAccess config) {
  if (SubstrateOptions.MultiThreaded.getValue()) {
    VMThreadMTFeature threadFeature = ImageSingletons.lookup(VMThreadMTFeature.class);
    vmThreadSize = threadFeature.getVMThreadSize();
  }
}
origin: com.oracle.substratevm/library-support

  @Override
  public void beforeAnalysis(BeforeAnalysisAccess access) {
    if (SubstrateOptions.MultiThreaded.getValue()) {
      /*
       * The per-thread JNI environment is located at offset 0 of each thread's {@link
       * VMThread} structure. For that reason, it has the same address as the VMThread and can
       * be used to restore the designated VMThread register when transitioning from native to
       * Java.
       */
      VMThreadMTFeature mt = ImageSingletons.lookup(VMThreadMTFeature.class);
      mt.setThreadLocalAtOffsetZero(JNIThreadLocalEnvironment.jniFunctions);
    }
  }
}
origin: com.oracle.substratevm/svm

Registration r = new Registration(invocationPlugins, threadLocalClass);
Class<?> valueClass = VMThreadLocalInfo.getValueClass(threadLocalClass);
registerAccessors(r, valueClass, false);
registerAccessors(r, valueClass, true);
com.oracle.svm.hosted.threadVMThreadMTFeature

Javadoc

Collects all VM thread local variables during native image generation and assigns them their offset in the IsolateThread data structure.

Most used methods

  • getVMThreadSize
  • registerAccessors
  • setThreadLocalAtOffsetZero

Popular in Java

  • Reading from database using SQL prepared statement
  • addToBackStack (FragmentTransaction)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • setContentView (Activity)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Permission (java.security)
    Legacy security code; do not use.
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • JOptionPane (javax.swing)
  • Best IntelliJ plugins
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