diff options
author | 2012-10-03 21:09:42 -0700 | |
---|---|---|
committer | 2012-10-04 09:27:04 -0700 | |
commit | 1f5393447b9f45be7918042d9ee7b521376de866 (patch) | |
tree | 1793cb0ae00b38a63f8cfd3a25b6cb0ee4edca16 /src/exception_test.cc | |
parent | 870ea4772199f8d4cbd9a269f9093620ee50a59c (diff) |
Make PopSirt inlinable, pass self to SirtRef.
Change-Id: Ieb91526b1cb1f8644ceb3c5b99649f658f43bbc1
Diffstat (limited to 'src/exception_test.cc')
-rw-r--r-- | src/exception_test.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/exception_test.cc b/src/exception_test.cc index b82f8f785c..c35572d51e 100644 --- a/src/exception_test.cc +++ b/src/exception_test.cc @@ -20,6 +20,7 @@ #include "gtest/gtest.h" #include "runtime.h" #include "scoped_thread_state_change.h" +#include "sirt_ref.h" #include "thread.h" #include "UniquePtr.h" @@ -31,7 +32,8 @@ class ExceptionTest : public CommonTest { CommonTest::SetUp(); ScopedObjectAccess soa(Thread::Current()); - SirtRef<ClassLoader> class_loader(soa.Decode<ClassLoader*>(LoadDex("ExceptionHandle"))); + SirtRef<ClassLoader> class_loader(soa.Self(), + soa.Decode<ClassLoader*>(LoadDex("ExceptionHandle"))); my_klass_ = class_linker_->FindClass("LExceptionHandle;", class_loader.get()); ASSERT_TRUE(my_klass_ != NULL); class_linker_->EnsureInitialized(my_klass_, false, true); |