< prev index next >

src/java.base/share/native/libjava/Thread.c

Print this page
@@ -41,22 +41,27 @@
  #define ARRAY_LENGTH(a) (sizeof(a)/sizeof(a[0]))
  
  static JNINativeMethod methods[] = {
      {"start0",           "()V",        (void *)&JVM_StartThread},
      {"stop0",            "(" OBJ ")V", (void *)&JVM_StopThread},
-     {"isAlive",          "()Z",        (void *)&JVM_IsThreadAlive},
+     {"isAlive0",         "()Z",        (void *)&JVM_IsThreadAlive},
      {"suspend0",         "()V",        (void *)&JVM_SuspendThread},
      {"resume0",          "()V",        (void *)&JVM_ResumeThread},
      {"setPriority0",     "(I)V",       (void *)&JVM_SetThreadPriority},
-     {"yield",            "()V",        (void *)&JVM_Yield},
-     {"sleep",            "(J)V",       (void *)&JVM_Sleep},
-     {"currentThread",    "()" THD,     (void *)&JVM_CurrentThread},
+     {"yield0",           "()V",        (void *)&JVM_Yield},
+     {"sleep0",           "(J)V",       (void *)&JVM_Sleep},
+     {"currentThread0",   "()" THD,     (void *)&JVM_CurrentThread0},
      {"interrupt0",       "()V",        (void *)&JVM_Interrupt},
      {"holdsLock",        "(" OBJ ")Z", (void *)&JVM_HoldsLock},
      {"getThreads",        "()[" THD,   (void *)&JVM_GetAllThreads},
      {"dumpThreads",      "([" THD ")[[" STE, (void *)&JVM_DumpThreads},
      {"setNativeName",    "(" STR ")V", (void *)&JVM_SetNativeThreadName},
+     {"scopeLocalCache",   "()[" OBJ,   (void *)&JVM_ScopeLocalCache},
+     {"setScopeLocalCache", "([" OBJ ")V",(void *)&JVM_SetScopeLocalCache},
+     {"currentThread",    "()" THD,     (void *)&JVM_CurrentThread},
+     {"setCurrentThread", "(" THD ")V", (void *)&JVM_SetCurrentThread},
+     {"getStackTrace0",   "()" OBJ,     (void *)&JVM_GetStackTrace},
  };
  
  #undef THD
  #undef OBJ
  #undef STE
< prev index next >