| Index: Source/wtf/PageAllocator.cpp
|
| diff --git a/Source/wtf/PageAllocator.cpp b/Source/wtf/PageAllocator.cpp
|
| index 19d14f74ed0f7224ce673547aff3aedfa38b8cbc..f082cc2eb46df261def71e0e38eea46d2f342fc4 100644
|
| --- a/Source/wtf/PageAllocator.cpp
|
| +++ b/Source/wtf/PageAllocator.cpp
|
| @@ -31,6 +31,7 @@
|
| #include "config.h"
|
| #include "wtf/PageAllocator.h"
|
|
|
| +#include "wtf/Assertions.h"
|
| #include "wtf/ProcessID.h"
|
| #include "wtf/SpinLock.h"
|
|
|
| @@ -69,7 +70,7 @@ void* allocSuperPages(void* addr, size_t len)
|
| // correct alignment within the allocation.
|
| if (UNLIKELY(reinterpret_cast<uintptr_t>(ptr) & kSuperPageOffsetMask)) {
|
| int ret = munmap(ptr, len);
|
| - ASSERT(!ret);
|
| + ASSERT_UNUSED(ret, !ret);
|
| ptr = reinterpret_cast<char*>(mmap(0, len + kSuperPageSize - kSystemPageSize, PROT_READ | PROT_WRITE, MAP_ANONYMOUS | MAP_PRIVATE, -1, 0));
|
| RELEASE_ASSERT(ptr != MAP_FAILED);
|
| int numSystemPagesToUnmap = kNumSystemPagesPerSuperPage - 1;
|
|
|