Commit 77307244 authored by Keishi Hattori's avatar Keishi Hattori Committed by Commit Bot

[PartitionAlloc] Temporarily use CHECK in SetFreelistHead

Temporarily use CHECK in SetFreelistHead to debug a crash.
Should be reverted after a Canary release.

Bug: 1137799
Change-Id: I9e01a5cdfafb7da2af76997f8c42716394ac4cd3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2491724Reviewed-by: default avatarBenoit L <lizeb@chromium.org>
Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Reviewed-by: default avatarYuki Shiino <yukishiino@chromium.org>
Commit-Queue: Keishi Hattori <keishi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#819797}
parent e110e72a
......@@ -365,9 +365,9 @@ ALWAYS_INLINE size_t SlotSpanMetadata<thread_safe>::GetRawSize() const {
template <bool thread_safe>
ALWAYS_INLINE void SlotSpanMetadata<thread_safe>::SetFreelistHead(
PartitionFreelistEntry* new_head) {
PA_DCHECK(!new_head ||
(reinterpret_cast<uintptr_t>(this) & kSuperPageBaseMask) ==
(reinterpret_cast<uintptr_t>(new_head) & kSuperPageBaseMask));
PA_CHECK(!new_head ||
(reinterpret_cast<uintptr_t>(this) & kSuperPageBaseMask) ==
(reinterpret_cast<uintptr_t>(new_head) & kSuperPageBaseMask));
freelist_head = new_head;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment