head 1.2; access; symbols; locks; strict; comment @// @; 1.2 date 2020.12.05.12.03.26; author nia; state dead; branches; next 1.1; commitid Jn4TOYwMCsyP5yyC; 1.1 date 2020.11.10.11.27.10; author nia; state Exp; branches; next ; commitid 9fgVEJjYQxSoHkvC; desc @@ 1.2 log @mozjs78: Fix configure where the readline library isn't builtin. This commit also moves the location of WRKSRC so that no patches are applied to files in parent directories of WRKSRC. @ text @$NetBSD: patch-vm_ArrayBufferObject.cpp,v 1.1 2020/11/10 11:27:10 nia Exp $ MPROTECT fix --- vm/ArrayBufferObject.cpp.orig 2020-09-25 09:22:59.000000000 +0000 +++ vm/ArrayBufferObject.cpp @@@@ -164,9 +164,17 @@@@ void* js::MapBufferMemory(size_t mappedS return nullptr; } #else // XP_WIN + +#ifdef PROT_MPROTECT + void* data = + MozTaggedAnonymousMmap(nullptr, mappedSize, + PROT_MPROTECT(PROT_EXEC | PROT_WRITE | PROT_READ), + MAP_PRIVATE | MAP_ANON, -1, 0, "wasm-reserved"); +#else void* data = MozTaggedAnonymousMmap(nullptr, mappedSize, PROT_NONE, MAP_PRIVATE | MAP_ANON, -1, 0, "wasm-reserved"); +#endif if (data == MAP_FAILED) { return nullptr; } @ 1.1 log @lang: Add mozjs78. Needed by newer gjs (needed by gnome-shell). Based on work by Dan Cîrnaț and myself in wip. This directory contains SpiderMonkey 78, the JavaScript engine by Mozilla. @ text @d1 1 a1 1 $NetBSD$ @