head 1.1; access; symbols; locks; strict; comment @ * @; 1.1 date 2026.11.19.19.45.50; author kikadf; state Exp; branches; next ; commitid arZmplK8KuiRJ64H; desc @@ 1.1 log @ chromium: update to 158.0.8127.36 * 158.0.8127.36 This update includes 204 security fixes. Please see the Chrome Security Page for more information. See: https://chromereleases.googleblog.com/2026/11/stable-channel-update-for-desktop_01699533288.html @ text @$NetBSD$ * Part of patchset to build chromium on NetBSD * Based on OpenBSD's chromium patches, and pkgsrc's qt5-qtwebengine patches --- base/memory/reentrancy_guard.h.orig 2026-11-11 21:01:38.000000000 +0000 +++ base/memory/reentrancy_guard.h @@@@ -50,7 +50,7 @@@@ struct BASE_EXPORT ReentrancyState { #endif static inline constexpr TlsKey kInvalidTlsKey = static_cast(-1); -#if PA_BUILDFLAG(IS_LINUX) || PA_BUILDFLAG(IS_CHROMEOS) +#if PA_BUILDFLAG(IS_LINUX) || PA_BUILDFLAG(IS_CHROMEOS) || PA_BUILDFLAG(IS_BSD) struct FastHasher { NO_SANITIZE("address") size_t operator()(uintptr_t value) const { @@@@ -139,7 +139,7 @@@@ struct BASE_EXPORT ReentrancyState { NO_SANITIZE("address") PA_ALWAYS_INLINE static void Initialize(PlatformThreadRef thread_ref) { -#if PA_BUILDFLAG(IS_LINUX) || PA_BUILDFLAG(IS_CHROMEOS) +#if PA_BUILDFLAG(IS_LINUX) || PA_BUILDFLAG(IS_CHROMEOS) || PA_BUILDFLAG(IS_BSD) // (1) this thread has not initialized the thread local variable yet. // The first pthread_setspecific() may cause memory allocation. Guard guard_scope(thread_ref); @@@@ -201,7 +201,7 @@@@ struct BASE_EXPORT ReentrancyState { auto reentrancy_guard_state = GetState(); if (reentrancy_guard_state != Value::kInitialized) [[unlikely]] { if (reentrancy_guard_state == Value::kUninitialized) [[likely]] { -#if PA_BUILDFLAG(IS_LINUX) || PA_BUILDFLAG(IS_CHROMEOS) +#if PA_BUILDFLAG(IS_LINUX) || PA_BUILDFLAG(IS_CHROMEOS) || PA_BUILDFLAG(IS_BSD) // `kUninitialized` means (1) this thread has not initialized the thread // local variable yet or (2) pthread_setspecific() for the // initialization causes memory allocation and reentrancy. @