diff options
author | Ian Rogers <irogers@google.com> | 2014-07-17 11:09:10 -0700 |
---|---|---|
committer | Ian Rogers <irogers@google.com> | 2014-08-08 08:29:53 -0700 |
commit | 68d8b42ddec39ec0174162d90d4abaa004d1983e (patch) | |
tree | 0bb6ccf3b996bb8363c10d07aa39cde221980602 /runtime/primitive.h | |
parent | 9c522c2cbbf50dc687728747b37ad59985750b65 (diff) | |
download | art-68d8b42ddec39ec0174162d90d4abaa004d1983e.zip art-68d8b42ddec39ec0174162d90d4abaa004d1983e.tar.gz art-68d8b42ddec39ec0174162d90d4abaa004d1983e.tar.bz2 |
Wire up check JNI force copy mode.
Increase check JNI checks.
Break apart jni_internal.h in to jni_env_ext.h and java_vm_ext.h.
Fix the abuse of ScopedObjectAccess/annotalysis by ScopedCheck in the case
of VM routines.
Make class loader override and shared library class loader JNI global
references rather than mirror pointers.
Clean-ups to native bridge.
Change-Id: If7c6110b5aade7a402bfb67534af86a7b2cdeb55
Diffstat (limited to 'runtime/primitive.h')
-rw-r--r-- | runtime/primitive.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/runtime/primitive.h b/runtime/primitive.h index b436bd2..a36e9cb 100644 --- a/runtime/primitive.h +++ b/runtime/primitive.h @@ -21,12 +21,10 @@ #include "base/logging.h" #include "base/macros.h" -#include "mirror/object_reference.h" namespace art { -namespace mirror { -class Object; -} // namespace mirror + +static constexpr size_t kObjectReferenceSize = 4; class Primitive { public: @@ -79,7 +77,7 @@ class Primitive { case kPrimFloat: return 4; case kPrimLong: case kPrimDouble: return 8; - case kPrimNot: return sizeof(mirror::HeapReference<mirror::Object>); + case kPrimNot: return kObjectReferenceSize; default: LOG(FATAL) << "Invalid type " << static_cast<int>(type); return 0; |