pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/jemalloc Set os_overcommits to true on NetBSD si...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9b87a50116a9
branches:  trunk
changeset: 362560:9b87a50116a9
user:      gson <gson%pkgsrc.org@localhost>
date:      Wed May 17 16:36:46 2017 +0000

description:
Set os_overcommits to true on NetBSD since NetBSD does overcommit.
This also has the benefit of not triggering the issue reported in
https://github.com/jemalloc/jemalloc/issues/837 .

diffstat:

 devel/jemalloc/Makefile                  |   3 ++-
 devel/jemalloc/distinfo                  |   3 ++-
 devel/jemalloc/patches/patch-src_pages.c |  17 +++++++++++++++++
 3 files changed, 21 insertions(+), 2 deletions(-)

diffs (46 lines):

diff -r e59f4481cc37 -r 9b87a50116a9 devel/jemalloc/Makefile
--- a/devel/jemalloc/Makefile   Wed May 17 15:28:51 2017 +0000
+++ b/devel/jemalloc/Makefile   Wed May 17 16:36:46 2017 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.8 2017/05/16 17:08:10 gson Exp $
+# $NetBSD: Makefile,v 1.9 2017/05/17 16:36:46 gson Exp $
 
 DISTNAME=      jemalloc-4.5.0
+PKGREVISION=   1
 CATEGORIES=    devel
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=jemalloc/}
 GITHUB_PROJECT=        jemalloc
diff -r e59f4481cc37 -r 9b87a50116a9 devel/jemalloc/distinfo
--- a/devel/jemalloc/distinfo   Wed May 17 15:28:51 2017 +0000
+++ b/devel/jemalloc/distinfo   Wed May 17 16:36:46 2017 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.5 2017/05/15 07:47:43 gson Exp $
+$NetBSD: distinfo,v 1.6 2017/05/17 16:36:46 gson Exp $
 
 SHA1 (jemalloc-4.5.0.tar.bz2) = e7714d070c623bff9acf682e9d52c930e491acd8
 RMD160 (jemalloc-4.5.0.tar.bz2) = 6acd6c0163d257c7f9941e1b01cf3c5202ca12a4
 SHA512 (jemalloc-4.5.0.tar.bz2) = 76953363fe1007952232220afa1a91da4c1c33c02369b5ad239d8dd1d0792141197c15e8489a8f4cd301b08494e65cadd8ecd34d025cb0285700dd78d7248821
 Size (jemalloc-4.5.0.tar.bz2) = 449992 bytes
 SHA1 (patch-Makefile.in) = 62e04375dec9aab678fed5bc32559deb942e799f
+SHA1 (patch-src_pages.c) = 269ea1da44585caf3635b4b66b85db9e56124f08
diff -r e59f4481cc37 -r 9b87a50116a9 devel/jemalloc/patches/patch-src_pages.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/jemalloc/patches/patch-src_pages.c  Wed May 17 16:36:46 2017 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-src_pages.c,v 1.1 2017/05/17 16:36:46 gson Exp $
+
+Set os_overcommits to true on NetBSD since NetBSD does overcommit.
+This also has the benefit of not triggering the issue reported in
+https://github.com/jemalloc/jemalloc/issues/837 .
+
+--- src/pages.c.orig   2017-03-01 03:10:36.000000000 +0000
++++ src/pages.c
+@@ -296,6 +296,8 @@ pages_boot(void)
+       if (os_overcommits)
+               mmap_flags |= MAP_NORESERVE;
+ #  endif
++#elif defined __NetBSD__
++      os_overcommits = true;
+ #else
+       os_overcommits = false;
+ #endif



Home | Main Index | Thread Index | Old Index