pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/nodejs nodejs: disable "near code ranges" on NetB...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/bcbdaa62d21d
branches:  trunk
changeset: 376061:bcbdaa62d21d
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Fri Apr 01 18:41:02 2022 +0000

description:
nodejs: disable "near code ranges" on NetBSD/evbarm-aarch64 for now

It results in mmap(2) errors of the PR kern/55533 variety.

diffstat:

 lang/nodejs/Makefile                                     |   3 +-
 lang/nodejs/distinfo                                     |   3 +-
 lang/nodejs/patches/patch-deps_v8_src_heap_code-range.cc |  19 ++++++++++++++++
 3 files changed, 23 insertions(+), 2 deletions(-)

diffs (52 lines):

diff -r c411ccc843cd -r bcbdaa62d21d lang/nodejs/Makefile
--- a/lang/nodejs/Makefile      Fri Apr 01 17:59:29 2022 +0000
+++ b/lang/nodejs/Makefile      Fri Apr 01 18:41:02 2022 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.228 2022/04/01 15:40:09 tnn Exp $
+# $NetBSD: Makefile,v 1.229 2022/04/01 18:41:02 tnn Exp $
 
 DISTNAME=      node-v16.14.2
+PKGREVISION=   1
 EXTRACT_SUFX=  .tar.xz
 
 USE_LANGUAGES= c gnu++14
diff -r c411ccc843cd -r bcbdaa62d21d lang/nodejs/distinfo
--- a/lang/nodejs/distinfo      Fri Apr 01 17:59:29 2022 +0000
+++ b/lang/nodejs/distinfo      Fri Apr 01 18:41:02 2022 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.209 2022/03/30 06:52:33 adam Exp $
+$NetBSD: distinfo,v 1.210 2022/04/01 18:41:02 tnn Exp $
 
 BLAKE2s (node-v16.14.2.tar.xz) = e32e3e3de0c413fa7d67a2dd5fe89268c0283c47e632274889b6fc82aaea031c
 SHA512 (node-v16.14.2.tar.xz) = b97274f6e0d63f19e01497c43af36e6561f019e7b0b5b4f6ea19d0fbe2cb4d3c514c06f49e237d1e327936db03c3f437ae0d0b2f830a35f1b7c3a723fbe2a1be
@@ -15,6 +15,7 @@
 SHA1 (patch-deps_v8_src_codegen_arm_cpu-arm.cc) = 84c75d61bc99c2ff9adeac3152f5b11ebb0e582b
 SHA1 (patch-deps_v8_src_common_globals.h) = 86637724864389f2b24251904de41669a2f00fbc
 SHA1 (patch-deps_v8_src_compiler_types.h) = 2a212282ab9d71e98ae56827fdb1d9778a6047a5
+SHA1 (patch-deps_v8_src_heap_code-range.cc) = dd240fd2f884bca7753d107919fd7d1e162235f0
 SHA1 (patch-deps_v8_tools_run-llprof.sh) = 39aa3faf77492ef8dd35b411b7b0e4605b469af3
 SHA1 (patch-node.gyp) = 0c2e5ccae623a7b730490baf8d509fa550b63e03
 SHA1 (patch-node.gypi) = 4a104dba6c22702211009bc60a6be6f87554e2fa
diff -r c411ccc843cd -r bcbdaa62d21d lang/nodejs/patches/patch-deps_v8_src_heap_code-range.cc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/nodejs/patches/patch-deps_v8_src_heap_code-range.cc  Fri Apr 01 18:41:02 2022 +0000
@@ -0,0 +1,19 @@
+$NetBSD: patch-deps_v8_src_heap_code-range.cc,v 1.1 2022/04/01 18:41:02 tnn Exp $
+
+nodejs: disable "near code ranges" on NetBSD/evbarm-aarch64 for now.
+It results in mmap(2) errors of the PR kern/55533 variety.
+
+--- deps/v8/src/heap/code-range.cc.orig        2022-03-17 21:59:26.000000000 +0000
++++ deps/v8/src/heap/code-range.cc
+@@ -33,7 +33,11 @@ Address CodeRangeAddressHint::GetAddress
+   base::MutexGuard guard(&mutex_);
+   auto it = recently_freed_.find(code_range_size);
+   if (it == recently_freed_.end() || it->second.empty()) {
++#if V8_OS_NETBSD && V8_TARGET_ARCH_ARM64
++    return 0;
++#else
+     return FUNCTION_ADDR(&FunctionInStaticBinaryForAddressHint);
++#endif
+   }
+   Address result = it->second.back();
+   it->second.pop_back();



Home | Main Index | Thread Index | Old Index