blob: fb0af07cb8d8c54657286977df251f7e7b15dcf4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
--- base/allocator/partition_allocator/starscan/pcscan.cc.orig 2021-05-25 11:07:18 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 {
|