Revert "[scudo] Fix MallocIterateBoundary on 32 bit."
authorChristopher Ferris <cferris@google.com>
Tue, 13 Jun 2023 06:55:26 +0000 (23:55 -0700)
committerChristopher Ferris <cferris@google.com>
Tue, 13 Jun 2023 07:15:16 +0000 (00:15 -0700)
This reverts commit 5e691a1c9b0ad22689d4a434ddf4fed940e58dec.

Reviewed By: cferris

Differential Revision: https://reviews.llvm.org/D152779

compiler-rt/lib/scudo/standalone/tests/wrappers_c_test.cpp

index 26bab8d..05d1d48 100644 (file)
@@ -333,7 +333,7 @@ static void callback(uintptr_t Base, size_t Size, void *Arg) {
 // block is a boundary for. It must only be seen once by the callback function.
 TEST(ScudoWrappersCTest, MallocIterateBoundary) {
   const size_t PageSize = sysconf(_SC_PAGESIZE);
-  const size_t BlockDelta = 16U;
+  const size_t BlockDelta = FIRST_32_SECOND_64(8U, 16U);
   const size_t SpecialSize = PageSize - BlockDelta;
 
   // We aren't guaranteed that any size class is exactly a page wide. So we need