git: 9b5c41643b80 - main - www/chromium: fix build on 12.X (older libc++)

From: Rene Ladan <rene_at_FreeBSD.org>
Date: Tue, 22 Feb 2022 18:11:49 UTC
The branch main has been updated by rene:

URL: https://cgit.FreeBSD.org/ports/commit/?id=9b5c41643b8058ac5fc565dce3814c8e9f159db8

commit 9b5c41643b8058ac5fc565dce3814c8e9f159db8
Author:     Robert Nagy <robert@openbsd.org>
AuthorDate: 2022-02-22 18:09:03 +0000
Commit:     Rene Ladan <rene@FreeBSD.org>
CommitDate: 2022-02-22 18:11:47 +0000

    www/chromium: fix build on 12.X (older libc++)
    
    PR:     262077
    Fixes:  a23dfd21 "www/chromium: update to 98.0.4758.102"
---
 ...tor_partition__allocator_starscan_state__bitmap.h | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/www/chromium/files/patch-base_allocator_partition__allocator_starscan_state__bitmap.h b/www/chromium/files/patch-base_allocator_partition__allocator_starscan_state__bitmap.h
new file mode 100644
index 000000000000..b1d0d8621c7a
--- /dev/null
+++ b/www/chromium/files/patch-base_allocator_partition__allocator_starscan_state__bitmap.h
@@ -0,0 +1,20 @@
+--- base/allocator/partition_allocator/starscan/state_bitmap.h.orig	2022-02-21 11:33:24.834416000 +0100
++++ base/allocator/partition_allocator/starscan/state_bitmap.h
+@@ -393,7 +393,7 @@ template <size_t PageSize, size_t PageAlignment, size_
+ template <typename Filter,
+           typename CallbackForwarder,
+           typename Callback,
+-          bool Clear>
++          bool ClearBits>
+ inline void
+ StateBitmap<PageSize, PageAlignment, AllocationAlignment>::IterateImpl(
+     size_t epoch,
+@@ -423,7 +423,7 @@ StateBitmap<PageSize, PageAlignment, AllocationAlignme
+ 
+       callback_forwarder(callback, object_address, bits);
+ 
+-      if (Clear) {
++      if (ClearBits) {
+         // Clear the current bits.
+         AsAtomicCell(cell_index)
+             .fetch_and(clear_value_mask, std::memory_order_relaxed);