diff options
author | Ian Rogers <irogers@google.com> | 2014-06-06 15:58:22 -0700 |
---|---|---|
committer | Ian Rogers <irogers@google.com> | 2014-06-06 16:27:45 -0700 |
commit | 576ca0cd692c0b6ae70e776de91015b8ff000a08 (patch) | |
tree | de632fae7ee9f096e7a2c54a7fcdace8f6ae7106 /runtime/jni_internal.h | |
parent | e21bf0099117b82963cdf7f95a1b8dabfcf29397 (diff) | |
download | android_art-576ca0cd692c0b6ae70e776de91015b8ff000a08.tar.gz android_art-576ca0cd692c0b6ae70e776de91015b8ff000a08.tar.bz2 android_art-576ca0cd692c0b6ae70e776de91015b8ff000a08.zip |
Reduce header files including header files.
Main focus is getting heap.h out of runtime.h.
Change-Id: I8d13dce8512816db2820a27b24f5866cc871a04b
Diffstat (limited to 'runtime/jni_internal.h')
-rw-r--r-- | runtime/jni_internal.h | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/runtime/jni_internal.h b/runtime/jni_internal.h index 4072da4695..abb71b7fbf 100644 --- a/runtime/jni_internal.h +++ b/runtime/jni_internal.h @@ -24,7 +24,6 @@ #include "indirect_reference_table.h" #include "object_callbacks.h" #include "reference_table.h" -#include "runtime.h" #include <iosfwd> #include <string> @@ -45,6 +44,7 @@ namespace mirror { union JValue; class Libraries; class ParsedOptions; +class Runtime; class ScopedObjectAccess; template<class T> class Handle; class Thread; @@ -216,25 +216,6 @@ class ScopedJniEnvLocalRefState { DISALLOW_COPY_AND_ASSIGN(ScopedJniEnvLocalRefState); }; -template<typename T> -inline T JNIEnvExt::AddLocalReference(mirror::Object* obj) { - IndirectRef ref = locals.Add(local_ref_cookie, obj); - - // TODO: fix this to understand PushLocalFrame, so we can turn it on. - if (false) { - if (check_jni) { - size_t entry_count = locals.Capacity(); - if (entry_count > 16) { - locals.Dump(LOG(WARNING) << "Warning: more than 16 JNI local references: " - << entry_count << " (most recent was a " << PrettyTypeOf(obj) << ")\n"); - // TODO: LOG(FATAL) in a later release? - } - } - } - - return reinterpret_cast<T>(ref); -} - } // namespace art std::ostream& operator<<(std::ostream& os, const jobjectRefType& rhs); |