diff options
author | 2017-02-22 10:11:30 -0800 | |
---|---|---|
committer | 2017-02-22 10:11:30 -0800 | |
commit | c73cb64585f301c8bb3b03a0684f6baead99b7ac (patch) | |
tree | a11cf45d631116afbee446956defe80406cff082 /runtime/scoped_thread_state_change.h | |
parent | fc5d8c28e5265634aeeb2f255dc8d5747e2919ee (diff) |
ART: Remove ObjPtr kPoison template parameter
Move to a global constexpr, so that object pointer poisoning can
be explicitly turned off for lower debug build overhead.
Bug: 35644797
Test: m
Test: m test-art-host
Change-Id: I2412b67cbec144f2aee206fb48591abe581fd00a
Diffstat (limited to 'runtime/scoped_thread_state_change.h')
-rw-r--r-- | runtime/scoped_thread_state_change.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/scoped_thread_state_change.h b/runtime/scoped_thread_state_change.h index 24199f76b6..a3286ac3d4 100644 --- a/runtime/scoped_thread_state_change.h +++ b/runtime/scoped_thread_state_change.h @@ -27,7 +27,7 @@ namespace art { struct JNIEnvExt; -template<class MirrorType, bool kPoison> class ObjPtr; +template<class MirrorType> class ObjPtr; // Scoped change into and out of a particular state. Handles Runnable transitions that require // more complicated suspension checking. The subclasses ScopedObjectAccessUnchecked and @@ -91,8 +91,8 @@ class ScopedObjectAccessAlreadyRunnable : public ValueObject { T AddLocalReference(ObjPtr<mirror::Object> obj) const REQUIRES_SHARED(Locks::mutator_lock_); - template<typename T, bool kPoison = kIsDebugBuild> - ObjPtr<T, kPoison> Decode(jobject obj) const REQUIRES_SHARED(Locks::mutator_lock_); + template<typename T> + ObjPtr<T> Decode(jobject obj) const REQUIRES_SHARED(Locks::mutator_lock_); ALWAYS_INLINE bool IsRunnable() const; |