head 1.1; access; symbols pkgsrc-2026Q1:1.1.0.14 pkgsrc-2026Q1-base:1.1 pkgsrc-2025Q4:1.1.0.12 pkgsrc-2025Q4-base:1.1 pkgsrc-2025Q3:1.1.0.10 pkgsrc-2025Q3-base:1.1 pkgsrc-2025Q2:1.1.0.8 pkgsrc-2025Q2-base:1.1 pkgsrc-2025Q1:1.1.0.6 pkgsrc-2025Q1-base:1.1 pkgsrc-2024Q4:1.1.0.4 pkgsrc-2024Q4-base:1.1 pkgsrc-2024Q3:1.1.0.2 pkgsrc-2024Q3-base:1.1; locks; strict; comment @// @; 1.1 date 2024.08.26.13.53.42; author ryoon; state Exp; branches; next ; commitid cZttMw7g2DtJZknF; desc @@ 1.1 log @lang/mozjs128: import mozjs128-128.1.0 This directory contains SpiderMonkey 128, the JavaScript engine by Mozilla. @ text @$NetBSD: patch-js_src_jit_FlushICache.cpp,v 1.2 2023/08/20 09:31:24 tnn Exp $ NetBSD does not have the Linux-specific membarrier(2) syscall. --- js/src/jit/FlushICache.cpp.orig 2023-08-15 20:31:19.000000000 +0000 +++ js/src/jit/FlushICache.cpp @@@@ -31,12 +31,18 @@@@ # elif defined(__android__) # include # include +# elif defined(__NetBSD__) + // nothing # else # error "Missing platform-specific declarations for membarrier syscall!" # endif // __linux__ / ANDROID static int membarrier(int cmd, int flags) { +#if defined(__NetBSD__) + return ENOSYS; +#else return syscall(__NR_membarrier, cmd, flags); +#endif } // These definitions come from the Linux kernel source, for kernels before 4.16 @@@@ -92,6 +98,8 @@@@ bool CanFlushExecutionContextForAllThrea computed = true; return kernelHasMembarrier; +# elif defined(__NetBSD__) + return false; # else // On other platforms, we assume that the syscall for flushing the icache // will flush the execution context for other cores. @