summaryrefslogtreecommitdiff
path: root/runtime/interpreter/interpreter_switch_impl0.cc
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2024-05-28 07:49:30 +0000
committer VladimĂ­r Marko <vmarko@google.com> 2024-05-28 14:40:11 +0000
commit1fbacdc97e637139a1bd306468a2ddeede7f4453 (patch)
tree10d97ee9f4736d6b4494078996a375c7d9ffc7fb /runtime/interpreter/interpreter_switch_impl0.cc
parent30e749b750f45f411d130b43d4221331c7c9d5fe (diff)
Avoid transaction records for last allocated object.
Test: m test-art-host-gtest Test: testrunner.py --host --optimizing --interp-ac Bug: 181943478 Change-Id: I0ededfab54d8b956e9e82371ab978fd00600216d
Diffstat (limited to 'runtime/interpreter/interpreter_switch_impl0.cc')
-rw-r--r--runtime/interpreter/interpreter_switch_impl0.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/interpreter/interpreter_switch_impl0.cc b/runtime/interpreter/interpreter_switch_impl0.cc
index 378b6895a5..53e37427b3 100644
--- a/runtime/interpreter/interpreter_switch_impl0.cc
+++ b/runtime/interpreter/interpreter_switch_impl0.cc
@@ -56,6 +56,10 @@ class InactiveTransactionChecker {
static void RecordArrayElementsInTransaction([[maybe_unused]] ObjPtr<mirror::Object> array,
[[maybe_unused]] int32_t count)
REQUIRES_SHARED(Locks::mutator_lock_) {}
+
+ ALWAYS_INLINE
+ static void RecordAllocatedObject([[maybe_unused]] ObjPtr<mirror::Object> new_object)
+ REQUIRES_SHARED(Locks::mutator_lock_) {}
};
class ActiveInstrumentationHandler {