From 4958e0f85ef877ba4028de8e67f6e9bb74bcf6a2 Mon Sep 17 00:00:00 2001 From: jagub2 Date: Mon, 9 Sep 2024 20:51:15 +0200 Subject: [PATCH] fix raw_ptr.cc on exotic architectures --- src/google/protobuf/raw_ptr.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/google/protobuf/raw_ptr.cc b/src/google/protobuf/raw_ptr.cc index cffe79c5020ea..6a15880244367 100644 --- a/src/google/protobuf/raw_ptr.cc +++ b/src/google/protobuf/raw_ptr.cc @@ -18,7 +18,7 @@ namespace protobuf { namespace internal { ABSL_CONST_INIT PROTOBUF_EXPORT - ABSL_CACHELINE_ALIGNED const char kZeroBuffer[ABSL_CACHELINE_SIZE] = {}; + ABSL_CACHELINE_ALIGNED const char kZeroBuffer[std::max(ABSL_CACHELINE_SIZE, 64)] = {}; } // namespace internal } // namespace protobuf