summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMathieu Chartier <mathieuc@google.com>2015-05-01 20:19:14 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2015-05-01 20:19:15 +0000
commitf274519ce9fc3a9df477ffb320bcdcddab505b58 (patch)
treea8ec6aa9d77d8f7f774d2975c2a9a35bd4f878cd
parent0697e8491217f980d90a769f241fed67f6827d6f (diff)
parent175746ac9039e9b741d3521420dcaa9c59341738 (diff)
downloadart-f274519ce9fc3a9df477ffb320bcdcddab505b58.tar.gz
art-f274519ce9fc3a9df477ffb320bcdcddab505b58.tar.bz2
art-f274519ce9fc3a9df477ffb320bcdcddab505b58.zip
Merge "Change invalid root from LOG(ERROR) to LOG(INTERNAL_FATAL)"
-rw-r--r--runtime/gc/collector/mark_sweep.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/gc/collector/mark_sweep.cc b/runtime/gc/collector/mark_sweep.cc
index f0e8d14d25..c6d2861fe9 100644
--- a/runtime/gc/collector/mark_sweep.cc
+++ b/runtime/gc/collector/mark_sweep.cc
@@ -381,8 +381,8 @@ class MarkSweepMarkObjectSlowPath {
if (UNLIKELY(obj == nullptr || !IsAligned<kPageSize>(obj) ||
(kIsDebugBuild && large_object_space != nullptr &&
!large_object_space->Contains(obj)))) {
- LOG(ERROR) << "Tried to mark " << obj << " not contained by any spaces";
- LOG(ERROR) << "Attempting see if it's a bad root";
+ LOG(INTERNAL_FATAL) << "Tried to mark " << obj << " not contained by any spaces";
+ LOG(INTERNAL_FATAL) << "Attempting see if it's a bad root";
mark_sweep_->VerifyRoots();
LOG(FATAL) << "Can't mark invalid object";
}
@@ -498,7 +498,7 @@ class VerifyRootVisitor : public SingleRootVisitor {
if (heap->GetLiveBitmap()->GetContinuousSpaceBitmap(root) == nullptr) {
space::LargeObjectSpace* large_object_space = heap->GetLargeObjectsSpace();
if (large_object_space != nullptr && !large_object_space->Contains(root)) {
- LOG(ERROR) << "Found invalid root: " << root << " " << info;
+ LOG(INTERNAL_FATAL) << "Found invalid root: " << root << " " << info;
}
}
}