diff options
author | 2024-05-20 15:51:01 +0000 | |
---|---|---|
committer | 2024-05-21 13:48:45 +0000 | |
commit | 2a25327e2bfdd7f5d128267684b13dc0f0e57e55 (patch) | |
tree | 9e9d0b80e78260cd961e47245b6676ce6e4f632e /runtime/class_linker.cc | |
parent | e0e0f0740a1c1f4f28e1d1f59fe77625aea8d4a4 (diff) |
Further refactor transaction checks in interpreter.
Reverse the relationship between `ActiveTransactionChecker`
and `AotClassLinker` by moving the checks to the latter.
Move `{Active,Inactive}TransactionChecker` and functions
`DoField{Get,Put}()` to the `interpreter_switch_impl*`.
Test: m test-art-host-gtest
Test: testrunner.py --host --optimizing --interp-ac
Change-Id: I509083b4ee77a69a3ba7e0d277b0e9e5fb7e32c8
Diffstat (limited to 'runtime/class_linker.cc')
-rw-r--r-- | runtime/class_linker.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/class_linker.cc b/runtime/class_linker.cc index 823d79e7d0..7359056d32 100644 --- a/runtime/class_linker.cc +++ b/runtime/class_linker.cc @@ -11168,21 +11168,21 @@ void ClassLinker::SetEnablePublicSdkChecks([[maybe_unused]] bool enabled) { } bool ClassLinker::TransactionWriteConstraint( - [[maybe_unused]] Thread* self, [[maybe_unused]] ObjPtr<mirror::Object> obj) const { + [[maybe_unused]] Thread* self, [[maybe_unused]] ObjPtr<mirror::Object> obj) { // Should not be called on ClassLinker, only on AotClassLinker that overrides this. LOG(FATAL) << "UNREACHABLE"; UNREACHABLE(); } bool ClassLinker::TransactionWriteValueConstraint( - [[maybe_unused]] Thread* self, [[maybe_unused]] ObjPtr<mirror::Object> value) const { + [[maybe_unused]] Thread* self, [[maybe_unused]] ObjPtr<mirror::Object> value) { // Should not be called on ClassLinker, only on AotClassLinker that overrides this. LOG(FATAL) << "UNREACHABLE"; UNREACHABLE(); } bool ClassLinker::TransactionAllocationConstraint( - [[maybe_unused]] Thread* self, [[maybe_unused]] ObjPtr<mirror::Class> klass) const { + [[maybe_unused]] Thread* self, [[maybe_unused]] ObjPtr<mirror::Class> klass) { // Should not be called on ClassLinker, only on AotClassLinker that overrides this. LOG(FATAL) << "UNREACHABLE"; UNREACHABLE(); |