summaryrefslogtreecommitdiff
path: root/runtime/gc/allocator/rosalloc.h
diff options
context:
space:
mode:
author Hiroshi Yamauchi <yamauchi@google.com> 2016-02-19 01:52:38 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2016-02-19 01:52:38 +0000
commitad736f19b4ab0b1767fba9ed124f12e74313fcbb (patch)
tree93b0c7a96db06d2b9bfdcf0cbf3538fc15f5ad93 /runtime/gc/allocator/rosalloc.h
parent5532365a289c8c2e8cb827c07058d72eb38f2e1c (diff)
parentb5e31f3dd5f792ff60225a4daa048a57d261cdd0 (diff)
Merge "Fix rosalloc issues with valgrind."
Diffstat (limited to 'runtime/gc/allocator/rosalloc.h')
-rw-r--r--runtime/gc/allocator/rosalloc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/gc/allocator/rosalloc.h b/runtime/gc/allocator/rosalloc.h
index a472a8bffb..b12cb5b0dd 100644
--- a/runtime/gc/allocator/rosalloc.h
+++ b/runtime/gc/allocator/rosalloc.h
@@ -192,6 +192,7 @@ class RosAlloc {
Verify();
}
DCHECK(slot != nullptr);
+ DCHECK(slot->Next() == nullptr);
Slot** headp = reinterpret_cast<Slot**>(&head_);
Slot** tailp = kUseTail ? reinterpret_cast<Slot**>(&tail_) : nullptr;
Slot* old_head = *headp;