summaryrefslogtreecommitdiffstats
path: root/runtime/transaction.h
diff options
context:
space:
mode:
authorSebastien Hertz <shertz@google.com>2014-02-21 15:46:30 +0100
committerSebastien Hertz <shertz@google.com>2014-04-02 09:21:12 +0200
commitee1d79a603c77c0667b27c075a983579d5c51f7e (patch)
tree7b23516402105319ab4736cd179a1de9101eeb46 /runtime/transaction.h
parent78bd9b2198f0ccc48036c1517b2d9a9023157dfb (diff)
downloadart-ee1d79a603c77c0667b27c075a983579d5c51f7e.zip
art-ee1d79a603c77c0667b27c075a983579d5c51f7e.tar.gz
art-ee1d79a603c77c0667b27c075a983579d5c51f7e.tar.bz2
Cleanup transaction support
Updates Thread::CreateInternalStackTrace to support both transactional and non-transactional modes using template. Generalizes non-transactional mode for invariant fields (which are set only once). Removes ArrayLog::VisitRoots as we never create Array logs of ObjectArray. As ObjectArray elements are set using Object::SetFieldObject, they are already recorded in the object logs: the object is the array itself and the offset corresponds to the element index in this array. And also checks we never log ObjectArray in array logs. Fixes location of thrown exception when calling native method during class initialization. Change-Id: Idbc368d3b8292b85ff40bc8a7c559e085477bf89
Diffstat (limited to 'runtime/transaction.h')
-rw-r--r--runtime/transaction.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/transaction.h b/runtime/transaction.h
index cf696de..6fd86c8 100644
--- a/runtime/transaction.h
+++ b/runtime/transaction.h
@@ -118,7 +118,6 @@ class Transaction {
void LogValue(size_t index, uint64_t value);
void Undo(mirror::Array* obj) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
- void VisitRoots(RootCallback* callback, void* arg);
size_t Size() const {
return array_values_.size();
@@ -145,6 +144,7 @@ class Transaction {
};
InternStringLog(mirror::String* s, uint32_t hash_code, StringKind kind, StringOp op)
: str_(s), hash_code_(hash_code), string_kind_(kind), string_op_(op) {
+ DCHECK(s != nullptr);
}
void Undo(InternTable* intern_table) EXCLUSIVE_LOCKS_REQUIRED(Locks::intern_table_lock_);