summaryrefslogtreecommitdiffstats
path: root/runtime/gc/space/rosalloc_space.cc
diff options
context:
space:
mode:
authorMathieu Chartier <mathieuc@google.com>2014-03-01 01:06:02 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2014-03-01 01:06:03 +0000
commit5a40712f67341a8b919afbe6a6d462e8f9044767 (patch)
treeeea2dae3c338d3070f63e086fa2a3669a9204873 /runtime/gc/space/rosalloc_space.cc
parentba8fdcc10193cdfa825c973d740b7ebf6dec2d89 (diff)
parent15d3402bbf8265eb1165694da2e4117eb128f3bc (diff)
downloadart-5a40712f67341a8b919afbe6a6d462e8f9044767.zip
art-5a40712f67341a8b919afbe6a6d462e8f9044767.tar.gz
art-5a40712f67341a8b919afbe6a6d462e8f9044767.tar.bz2
Merge "Add custom SIGSEGV handler to help find heap corruption."
Diffstat (limited to 'runtime/gc/space/rosalloc_space.cc')
-rw-r--r--runtime/gc/space/rosalloc_space.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/runtime/gc/space/rosalloc_space.cc b/runtime/gc/space/rosalloc_space.cc
index fe8421d..fb621ea 100644
--- a/runtime/gc/space/rosalloc_space.cc
+++ b/runtime/gc/space/rosalloc_space.cc
@@ -304,12 +304,15 @@ void RosAllocSpace::RevokeAllThreadLocalBuffers() {
}
void RosAllocSpace::Clear() {
- // TODO: Delete and create new mspace here.
madvise(GetMemMap()->Begin(), GetMemMap()->Size(), MADV_DONTNEED);
GetLiveBitmap()->Clear();
GetMarkBitmap()->Clear();
}
+void RosAllocSpace::Reset() {
+ // TODO: Delete and create new mspace here.
+}
+
} // namespace space
} // namespace gc
} // namespace art