summaryrefslogtreecommitdiffstats
path: root/runtime/gc/collector/semi_space.cc
diff options
context:
space:
mode:
authorHiroshi Yamauchi <yamauchi@google.com>2014-02-04 18:12:17 -0800
committerHiroshi Yamauchi <yamauchi@google.com>2014-02-07 15:33:21 -0800
commita4adbfd44032d70e166e6f18096bbbed05a990ba (patch)
tree8fe1c7e9e0a12ca5d97de79f034978cadf25b391 /runtime/gc/collector/semi_space.cc
parent6957616884d7b290f2b8e98e2c4304695799134b (diff)
downloadart-a4adbfd44032d70e166e6f18096bbbed05a990ba.zip
art-a4adbfd44032d70e166e6f18096bbbed05a990ba.tar.gz
art-a4adbfd44032d70e166e6f18096bbbed05a990ba.tar.bz2
RosAlloc verification.
If enabled, RosAlloc verification checks the allocator internal metadata and invariants to detect bugs, heap corruptions, and race conditions. Added runtime options for enabling and disabling it. Enable it for the debug build. Bug: 9986565 Bug: 12592026 Change-Id: I923742b87805ae839f1549d78d0d492733da6a58
Diffstat (limited to 'runtime/gc/collector/semi_space.cc')
-rw-r--r--runtime/gc/collector/semi_space.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/gc/collector/semi_space.cc b/runtime/gc/collector/semi_space.cc
index 03307f5..0c6a938 100644
--- a/runtime/gc/collector/semi_space.cc
+++ b/runtime/gc/collector/semi_space.cc
@@ -182,6 +182,7 @@ void SemiSpace::MarkingPhase() {
}
}
Locks::mutator_lock_->AssertExclusiveHeld(self_);
+
TimingLogger::ScopedSplit split("MarkingPhase", &timings_);
// Need to do this with mutators paused so that somebody doesn't accidentally allocate into the
// wrong space.