From 3774325b0d68d48c9ef6ebf460be1271cdfd2740 Mon Sep 17 00:00:00 2001 From: Weston Pace Date: Tue, 30 May 2023 23:48:29 -0700 Subject: [PATCH] Workaround for microsoft/mimalloc#700. Mimalloc fails to perform aligned allocations greater than 128 bytes and less than 1024 bytes. Our test was doing this but we never actually need this in our library code itself. So, instead, I changed the test to align to 128 bytes which still achieves the purpose of the test. --- cpp/src/arrow/util/align_util_test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp/src/arrow/util/align_util_test.cc b/cpp/src/arrow/util/align_util_test.cc index a14041597a7..c116898114e 100644 --- a/cpp/src/arrow/util/align_util_test.cc +++ b/cpp/src/arrow/util/align_util_test.cc @@ -201,7 +201,7 @@ TEST(EnsureAlignment, Buffer) { std::shared_ptr realigned_large, util::EnsureAlignment(unaligned_view, /*alignment=*/256, default_memory_pool())); // If the user wants more than kDefaultBufferAlignment they should get it - ASSERT_TRUE(util::CheckAlignment(*realigned_large, /*alignment=*/256)); + ASSERT_TRUE(util::CheckAlignment(*realigned_large, /*alignment=*/128)); ASSERT_OK_AND_ASSIGN( std::shared_ptr realigned_huge,