OSDN Git Service

Use MarkIfNotInToSpace for SemiSpace::MarkObject
authorMathieu Chartier <mathieuc@google.com>
Fri, 4 Mar 2016 18:30:39 +0000 (10:30 -0800)
committerMathieu Chartier <mathieuc@google.com>
Sat, 5 Mar 2016 01:00:14 +0000 (17:00 -0800)
commit9a9aee662ebde18bed2a8e263c921df4f529b27b
tree693b9fed88ed879b00055382da71c09d665ea1d2
parent42e84e007ea69eefd871646a863cdae796ae3428
Use MarkIfNotInToSpace for SemiSpace::MarkObject

SemiSpace::MarkObject is called from ModUnionScanImageRootVisitor
which. These roots may be visited multiple times by the GC. One
example is the allocation stack traces and a class visiting the same
ArtMethod twice.

Bug: 27435111
Change-Id: I721b8bcf7fe43f4c351d902c2f3422d3bb585295
runtime/gc/collector/semi_space-inl.h
runtime/gc/collector/semi_space.cc