summaryrefslogtreecommitdiff
path: root/runtime/common_runtime_test.h
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2024-05-14 16:46:15 +0200
committer VladimĂ­r Marko <vmarko@google.com> 2024-05-17 05:52:24 +0000
commit382f0db56cb95d0f1062ce46c73bc21705c87cef (patch)
treeaf1ed12f59c3a8a90946560001a53a98ffdbce0a /runtime/common_runtime_test.h
parente6374e9c089c98729068fc25fc981e78b27d6a70 (diff)
Move transaction records from `Runtime` to `AotClassLinker`.
Keep a simple flag for active transaction in `Runtime` but move all other transaction data to `AotClassLinker`. Make `IsActiveTransaction()` a pre-requisite for calling `IsTransactionAborted()`. Eliminate `AbortTransactionAndThrowAbortError()` by inlining into `AbortTransactionV()` and rewriting other callers to use `AbortTransactionF()` instead. Separate transaction-related test code to its own files. Test: m test-art-host-gtest Test: testrunner.py --host --optimizing Change-Id: Ie6ee421fcfed1599049ab50ca692f19c71f395ce
Diffstat (limited to 'runtime/common_runtime_test.h')
-rw-r--r--runtime/common_runtime_test.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/runtime/common_runtime_test.h b/runtime/common_runtime_test.h
index 8f9d7a80ff..87c8d111f0 100644
--- a/runtime/common_runtime_test.h
+++ b/runtime/common_runtime_test.h
@@ -223,11 +223,6 @@ class CommonRuntimeTestImpl : public CommonArtTestImpl {
// Returns the directory where the pre-compiled boot.art can be found.
static std::string GetImageLocation();
static std::string GetSystemImageFile();
-
- static void EnterTransactionMode() REQUIRES_SHARED(Locks::mutator_lock_);
- static void ExitTransactionMode();
- static void RollbackAndExitTransactionMode() REQUIRES_SHARED(Locks::mutator_lock_);
- static bool IsTransactionAborted();
};
template <typename TestType>