summaryrefslogtreecommitdiffstats
path: root/src/class_linker.h
diff options
context:
space:
mode:
authorIan Rogers <irogers@google.com>2012-02-03 10:41:20 -0800
committerIan Rogers <irogers@google.com>2012-02-03 10:49:06 -0800
commit5167c97a4f672ba821453418e3943988fabbfc43 (patch)
tree7046f25582fd55e6bb4b19bb2fb7781b0d6c60a6 /src/class_linker.h
parentf2e08b29d3e49f491cd1c29c226154e92380c179 (diff)
downloadart-5167c97a4f672ba821453418e3943988fabbfc43.zip
art-5167c97a4f672ba821453418e3943988fabbfc43.tar.gz
art-5167c97a4f672ba821453418e3943988fabbfc43.tar.bz2
Improve debug-ability of native method registration
If we fail to register a native we construct a stack trace which needs Throwable and stack trace support. Registering Throwable's natives first and making Throwable a root supports this. Previously we could only generate a stack trace when thread start up was complete. Change-Id: Icc7c1657988c7f36aceb1d4f3e61e7218f55e055
Diffstat (limited to 'src/class_linker.h')
-rw-r--r--src/class_linker.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/class_linker.h b/src/class_linker.h
index 10d8305..f2b44a3 100644
--- a/src/class_linker.h
+++ b/src/class_linker.h
@@ -429,6 +429,7 @@ class ClassLinker {
kJavaLangClassLoader,
kDalvikSystemBaseDexClassLoader,
kDalvikSystemPathClassLoader,
+ kJavaLangThrowable,
kJavaLangStackTraceElement,
kPrimitiveBoolean,
kPrimitiveByte,