summaryrefslogtreecommitdiffstats
path: root/runtime/gc
diff options
context:
space:
mode:
authorMathieu Chartier <mathieuc@google.com>2014-03-26 15:15:57 -0700
committerMathieu Chartier <mathieuc@google.com>2014-03-26 17:21:56 -0700
commit580a8dfda74e7999f6b3e28e239ae8461a39dfcb (patch)
tree085db43858bd760ee257f0bfd66cd7472788d591 /runtime/gc
parent223efbe5164f6fe83cf04e7f9121adb29b8dd231 (diff)
downloadart-580a8dfda74e7999f6b3e28e239ae8461a39dfcb.zip
art-580a8dfda74e7999f6b3e28e239ae8461a39dfcb.tar.gz
art-580a8dfda74e7999f6b3e28e239ae8461a39dfcb.tar.bz2
Less redundant verification.
~3 less objects verified per object scanned in the GC. Helps the irogers dogfood experience. Change-Id: I6efeab7842a6c702adecef73fb573c19291fecf2
Diffstat (limited to 'runtime/gc')
-rw-r--r--runtime/gc/collector/semi_space.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/gc/collector/semi_space.cc b/runtime/gc/collector/semi_space.cc
index cd9e217..d4f47ef 100644
--- a/runtime/gc/collector/semi_space.cc
+++ b/runtime/gc/collector/semi_space.cc
@@ -669,7 +669,8 @@ class SemiSpaceMarkObjectVisitor {
void operator()(Object* obj, MemberOffset offset, bool /* is_static */) const ALWAYS_INLINE
EXCLUSIVE_LOCKS_REQUIRED(Locks::mutator_lock_, Locks::heap_bitmap_lock_) {
- collector_->MarkObject(obj->GetFieldObjectReferenceAddr(offset));
+ // Object was already verified when we scanned it.
+ collector_->MarkObject(obj->GetFieldObjectReferenceAddr<kVerifyNone>(offset));
}
void operator()(mirror::Class* klass, mirror::Reference* ref) const