diff options
| author | 2014-07-24 16:26:09 -0700 | |
|---|---|---|
| committer | 2014-07-28 18:33:04 -0700 | |
| commit | 0398e171f206cd3b140a358ac31b0a3760380df1 (patch) | |
| tree | db5b34142d812f95581a864b681940efc94c6945 /runtime/mirror/art_method.cc | |
| parent | e5647289ccc7dafd8b91771a7bd1cd19416aed66 (diff) | |
Fix proxy tracing and enable tests that now work with tracing.
Bug: 16386215
Change-Id: Iec2a372c921caceb050c6baf72d48b3d822899a4
Diffstat (limited to 'runtime/mirror/art_method.cc')
| -rw-r--r-- | runtime/mirror/art_method.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/runtime/mirror/art_method.cc b/runtime/mirror/art_method.cc index 211ba1dde2..c27b2038b8 100644 --- a/runtime/mirror/art_method.cc +++ b/runtime/mirror/art_method.cc @@ -158,12 +158,12 @@ ArtMethod* ArtMethod::FindOverriddenMethod() { } } } -#ifndef NDEBUG - StackHandleScope<2> hs(Thread::Current()); - MethodHelper result_mh(hs.NewHandle(result)); - MethodHelper this_mh(hs.NewHandle(this)); - DCHECK(result == NULL || this_mh.HasSameNameAndSignature(&result_mh)); -#endif + if (kIsDebugBuild) { + StackHandleScope<2> hs(Thread::Current()); + MethodHelper result_mh(hs.NewHandle(result)); + MethodHelper this_mh(hs.NewHandle(this)); + DCHECK(result == nullptr || this_mh.HasSameNameAndSignature(&result_mh)); + } return result; } |