DO NOT MERGE Fix all unsafe caching to be like libcore.
This way, if a runtime is restarted within a process, we re-initialize all
the cached data.
Conflicts:
src/native/java_lang_Runtime.cc -- nativeExit lost an argument in dalvik-dev
(cherry picked from commit 7756d5473fa27ce7e6ac7c31770eef7030431da4)
Change-Id: I6184fc20c2a9ec16c4b053584a4d1c3b64452d0f
diff --git a/src/native/java_lang_Thread.cc b/src/native/java_lang_Thread.cc
index 197c1b9..e009157 100644
--- a/src/native/java_lang_Thread.cc
+++ b/src/native/java_lang_Thread.cc
@@ -22,8 +22,6 @@
#include "thread.h"
#include "thread_list.h"
-#include "JniConstants.h" // Last to avoid problems with LOG redefinition.
-
namespace art {
static jobject Thread_currentThread(JNIEnv* env, jclass) {
@@ -145,7 +143,7 @@
};
void register_java_lang_Thread(JNIEnv* env) {
- jniRegisterNativeMethods(env, "java/lang/Thread", gMethods, NELEM(gMethods));
+ REGISTER_NATIVE_METHODS("java/lang/Thread");
}
} // namespace art