diff options
author | 2020-05-05 10:07:59 +0100 | |
---|---|---|
committer | 2020-05-05 13:34:31 +0000 | |
commit | d34b73b4ac478462acc03c4cd42ae7568c832eb8 (patch) | |
tree | 27f1c4599178ba57451c29d0156c232768711b6d /compiler/jni/jni_compiler_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/jni/jni_compiler_test.cc')
-rw-r--r-- | compiler/jni/jni_compiler_test.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/jni/jni_compiler_test.cc b/compiler/jni/jni_compiler_test.cc index 405c9ec689..2db139078f 100644 --- a/compiler/jni/jni_compiler_test.cc +++ b/compiler/jni/jni_compiler_test.cc @@ -1178,7 +1178,7 @@ jint Java_MyClassNatives_nativeUpCall(JNIEnv* env, jobject thisObj, jint i) { ScopedObjectAccess soa(env); // Build stack trace - jobject internal = Thread::Current()->CreateInternalStackTrace<false>(soa); + jobject internal = Thread::Current()->CreateInternalStackTrace(soa); jobjectArray ste_array = Thread::InternalStackTraceToStackTraceElementArray(soa, internal); ObjPtr<mirror::ObjectArray<mirror::StackTraceElement>> trace_array = soa.Decode<mirror::ObjectArray<mirror::StackTraceElement>>(ste_array); |