summaryrefslogtreecommitdiff
path: root/compiler/exception_test.cc
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2018-05-30 15:18:48 +0100
committer Vladimir Marko <vmarko@google.com> 2018-05-31 09:48:59 +0100
commita8bba7d0853b372aea3ed3ea154fb2b2a23c2c9d (patch)
tree973a89870e0cc8912401503ebab1b709a9df5ba0 /compiler/exception_test.cc
parent65e463cf7ea91003ef030c8a819ae4596c9b820f (diff)
ObjPtr<>-ify ClassLinker::FindClass(), fix 1 stale reference use.
Thread::CreateAnnotatedStackTrace() was using a stale reference `aste_array_class`. Test: m test-art-host-gtest Test: testrunner.py --host --optimizing Bug: 31113334 Change-Id: I191907c0053456bb57de425aa6ccd9668df818a2
Diffstat (limited to 'compiler/exception_test.cc')
-rw-r--r--compiler/exception_test.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/exception_test.cc b/compiler/exception_test.cc
index da1db4593b..15c07870a1 100644
--- a/compiler/exception_test.cc
+++ b/compiler/exception_test.cc
@@ -34,6 +34,7 @@
#include "mirror/object_array-inl.h"
#include "mirror/stack_trace_element.h"
#include "oat_quick_method_header.h"
+#include "obj_ptr-inl.h"
#include "optimizing/stack_map_stream.h"
#include "runtime-inl.h"
#include "scoped_thread_state_change-inl.h"
@@ -122,7 +123,7 @@ class ExceptionTest : public CommonRuntimeTest {
ArtMethod* method_g_;
private:
- mirror::Class* my_klass_;
+ ObjPtr<mirror::Class> my_klass_;
};
TEST_F(ExceptionTest, FindCatchHandler) {