summaryrefslogtreecommitdiff
path: root/runtime/interpreter/interpreter_switch_impl0.cc
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2024-05-28 15:39:00 +0000
committer VladimĂ­r Marko <vmarko@google.com> 2024-05-31 12:14:53 +0000
commitea096e4d28d23ed289b418d24daa177e002f2672 (patch)
tree3466d6a9778feccc7c51ffe522f2f01751bbff38 /runtime/interpreter/interpreter_switch_impl0.cc
parentb801817fcb6647c252b6cae9051f9500c88057b1 (diff)
Avoid transaction records for all new objects.
Test: m test-art-host-gtest Test: testrunner.py --host --optimizing --interp-ac Bug: 181943478 Change-Id: I0a51f622812dd3be0844c9e7c79e3b569ac3f029
Diffstat (limited to 'runtime/interpreter/interpreter_switch_impl0.cc')
-rw-r--r--runtime/interpreter/interpreter_switch_impl0.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/runtime/interpreter/interpreter_switch_impl0.cc b/runtime/interpreter/interpreter_switch_impl0.cc
index 53e37427b3..1bea9da838 100644
--- a/runtime/interpreter/interpreter_switch_impl0.cc
+++ b/runtime/interpreter/interpreter_switch_impl0.cc
@@ -57,8 +57,10 @@ class InactiveTransactionChecker {
[[maybe_unused]] int32_t count)
REQUIRES_SHARED(Locks::mutator_lock_) {}
- ALWAYS_INLINE
- static void RecordAllocatedObject([[maybe_unused]] ObjPtr<mirror::Object> new_object)
+ ALWAYS_INLINE static void RecordNewObject([[maybe_unused]] ObjPtr<mirror::Object> new_object)
+ REQUIRES_SHARED(Locks::mutator_lock_) {}
+
+ ALWAYS_INLINE static void RecordNewArray([[maybe_unused]] ObjPtr<mirror::Array> new_array)
REQUIRES_SHARED(Locks::mutator_lock_) {}
};