opnsense-ports/devel/electron32/files/patch-v8_src_sandbox_sandbox.cc
Franco Fichtner fd3bf1794a */*: sync with upstream
Taken from: FreeBSD
2024-09-23 09:02:17 +02:00

11 lines
584 B
C++

--- v8/src/sandbox/sandbox.cc.orig 2024-08-14 20:58:28 UTC
+++ v8/src/sandbox/sandbox.cc
@@ -48,7 +48,7 @@ static Address DetermineAddressSpaceLimit() {
}
#endif // V8_TARGET_ARCH_X64
-#if defined(V8_TARGET_ARCH_ARM64) && defined(V8_TARGET_OS_ANDROID)
+#if defined(V8_TARGET_ARCH_ARM64) && (defined(V8_TARGET_OS_ANDROID) || defined(V8_TARGET_OS_OPENBSD))
// On Arm64 Android assume a 40-bit virtual address space (39 bits for
// userspace and kernel each) as that appears to be the most common
// configuration and there seems to be no easy way to retrieve the actual