diff options
| author | 2016-02-19 01:52:38 +0000 | |
|---|---|---|
| committer | 2016-02-19 01:52:38 +0000 | |
| commit | ad736f19b4ab0b1767fba9ed124f12e74313fcbb (patch) | |
| tree | 93b0c7a96db06d2b9bfdcf0cbf3538fc15f5ad93 /runtime/gc/allocator/rosalloc.h | |
| parent | 5532365a289c8c2e8cb827c07058d72eb38f2e1c (diff) | |
| parent | b5e31f3dd5f792ff60225a4daa048a57d261cdd0 (diff) | |
Merge "Fix rosalloc issues with valgrind."
Diffstat (limited to 'runtime/gc/allocator/rosalloc.h')
| -rw-r--r-- | runtime/gc/allocator/rosalloc.h | 1 |
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; |