From a8bba7d0853b372aea3ed3ea154fb2b2a23c2c9d Mon Sep 17 00:00:00 2001 From: Vladimir Marko Date: Wed, 30 May 2018 15:18:48 +0100 Subject: 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 --- compiler/exception_test.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'compiler/exception_test.cc') 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 my_klass_; }; TEST_F(ExceptionTest, FindCatchHandler) { -- cgit v1.2.3-59-g8ed1b