From 395acb74da05fa35d924059a170ebd8267356b65 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Thu, 15 May 2025 06:55:00 -0400 Subject: [PATCH] Adjust Table.GrowExtremelyLargeTable to avoid OOM on i386 --- absl/container/internal/raw_hash_set_test.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/absl/container/internal/raw_hash_set_test.cc b/absl/container/internal/raw_hash_set_test.cc index a5cbd44d3b2..2c55d0fc079 100644 --- a/absl/container/internal/raw_hash_set_test.cc +++ b/absl/container/internal/raw_hash_set_test.cc @@ -4267,8 +4267,8 @@ struct ConstUint8Hash { // 5. Finally we will catch up and go to overflow codepath. TEST(Table, GrowExtremelyLargeTable) { constexpr size_t kTargetCapacity = -#if defined(__wasm__) || defined(__asmjs__) - NextCapacity(ProbedItem4Bytes::kMaxNewCapacity); // OOMs on WASM. +#if defined(__wasm__) || defined(__asmjs__) || defined(__i386__) + NextCapacity(ProbedItem4Bytes::kMaxNewCapacity); // OOMs on WASM, 32-bit. #else NextCapacity(ProbedItem8Bytes::kMaxNewCapacity); #endif