diff options
author | 2020-05-05 10:07:59 +0100 | |
---|---|---|
committer | 2020-05-05 13:34:31 +0000 | |
commit | d34b73b4ac478462acc03c4cd42ae7568c832eb8 (patch) | |
tree | 27f1c4599178ba57451c29d0156c232768711b6d /compiler/exception_test.cc | |
parent | 4a48775376a4c0b180a7d32ad2cdf00bd0dca140 (diff) |
Clean up internal stack trace construction.
Simplify the code by ignoring active transactions. Writing
to fields of a newly allocated object does not need to be
recorded as aborting the transaction removes all references
to the new object and it's unnecessary to roll back writes
to unreachable object's fields.
Test: m test-art-host-gtest
Test: testrunner.py --host --optimizing
Test: aosp_taimen-userdebug boots.
Change-Id: Ia91d3274398b0ca0f5b0040dcf323921d915b657
Diffstat (limited to 'compiler/exception_test.cc')
-rw-r--r-- | compiler/exception_test.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/exception_test.cc b/compiler/exception_test.cc index 633e124d07..7d56da07fb 100644 --- a/compiler/exception_test.cc +++ b/compiler/exception_test.cc @@ -213,7 +213,7 @@ TEST_F(ExceptionTest, StackTraceElement) { // Set up thread to appear as if we called out of method_g_ at given pc dex. thread->SetTopOfStack(reinterpret_cast<ArtMethod**>(&fake_stack[0])); - jobject internal = thread->CreateInternalStackTrace<false>(soa); + jobject internal = thread->CreateInternalStackTrace(soa); ASSERT_TRUE(internal != nullptr); jobjectArray ste_array = Thread::InternalStackTraceToStackTraceElementArray(soa, internal); ASSERT_TRUE(ste_array != nullptr); |