From 4d7f61d44a732cfbc8573e5d93364983fd746888 Mon Sep 17 00:00:00 2001 From: Mathieu Chartier Date: Thu, 17 Apr 2014 14:43:39 -0700 Subject: Use non volatile lock words in semispace collector. GSS FormulaEvaluationActions.EvaluateAndApplyChanges: Before GC time: 9.1s After GC time: 7.98s Fixed timing logger errors. Change-Id: I4193c6ccbbbe7a7220dfaabbf3472a5dcebae616 --- runtime/mirror/object.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/mirror/object.cc') diff --git a/runtime/mirror/object.cc b/runtime/mirror/object.cc index be7e9f20ec..766bbc9892 100644 --- a/runtime/mirror/object.cc +++ b/runtime/mirror/object.cc @@ -150,7 +150,7 @@ int32_t Object::GenerateIdentityHashCode() { int32_t Object::IdentityHashCode() const { mirror::Object* current_this = const_cast(this); while (true) { - LockWord lw = current_this->GetLockWord(); + LockWord lw = current_this->GetLockWord(false); switch (lw.GetState()) { case LockWord::kUnlocked: { // Try to compare and swap in a new hash, if we succeed we will return the hash on the next -- cgit v1.2.3-59-g8ed1b