aboutsummaryrefslogtreecommitdiff
path: root/devel/electron13/files/patch-base_allocator_partition__allocator_starscan_pcscan.cc
diff options
context:
space:
mode:
Diffstat (limited to 'devel/electron13/files/patch-base_allocator_partition__allocator_starscan_pcscan.cc')
-rw-r--r--devel/electron13/files/patch-base_allocator_partition__allocator_starscan_pcscan.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/devel/electron13/files/patch-base_allocator_partition__allocator_starscan_pcscan.cc b/devel/electron13/files/patch-base_allocator_partition__allocator_starscan_pcscan.cc
new file mode 100644
index 000000000000..27ca464e7f3b
--- /dev/null
+++ b/devel/electron13/files/patch-base_allocator_partition__allocator_starscan_pcscan.cc
@@ -0,0 +1,11 @@
+--- base/allocator/partition_allocator/starscan/pcscan.cc.orig 2021-07-15 19:13:29 UTC
++++ base/allocator/partition_allocator/starscan/pcscan.cc
+@@ -67,7 +67,7 @@ namespace internal {
+
+ namespace {
+
+-#if DCHECK_IS_ON() && defined(OS_LINUX)
++#if DCHECK_IS_ON() && (defined(OS_LINUX) || defined(OS_BSD))
+ // Currently, check reentracy only on Linux. On Android TLS is emulated by the
+ // runtime lib, which can allocate and therefore cause reentrancy.
+ struct ReentrantScannerGuard final {