pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/jemalloc



Module Name:    pkgsrc
Committed By:   adam
Date:           Sun Aug 27 12:12:25 UTC 2017

Modified Files:
        pkgsrc/devel/jemalloc: Makefile distinfo
        pkgsrc/devel/jemalloc/patches: patch-src_pages.c

Log Message:
5.0.1:

This bugfix release fixes several issues, most of which are obscure enough that typical applications are not impacted.

Bug fixes:
Update decay->nunpurged before purging, in order to avoid potential update races and subsequent incorrect purging volume.
Only abort on dlsym(3) error if the failure impacts an enabled feature (lazy locking and/or background threads). This mitigates an initialization failure bug for which we still do not have a clear 
reproduction test case.
Modify tsd management so that it neither crashes nor leaks if a thread's only allocation activity is to call free() after TLS destructors have been executed. This behavior was observed when operating 
with GNU libc, and is unlikely to be an issue with other libc implementations.
Mask signals during background thread creation. This prevents signals from being inadvertently delivered to background threads.
Avoid inactivity checks within background threads, in order to prevent recursive mutex acquisition.
Fix extent_grow_retained() to use the specified hooks when the arena.<i>.extent_hooks mallctl is used to override the default hooks.
Add missing reentrancy support for custom extent hooks which allocate.
Post-fork(2), re-initialize the list of tcaches associated with each arena to contain no tcaches except the forking thread's.
Add missing post-fork(2) mutex reinitialization for extent_grow_mtx. This fixes potential deadlocks after fork(2).
Enforce minimum autoconf version (currently 2.68), since 2.63 is known to generate corrupt configure scripts.
Ensure that the configured page size (--with-lg-page) is no larger than the configured huge page size (--with-lg-hugepage).


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 pkgsrc/devel/jemalloc/Makefile
cvs rdiff -u -r1.6 -r1.7 pkgsrc/devel/jemalloc/distinfo
cvs rdiff -u -r1.1 -r1.2 pkgsrc/devel/jemalloc/patches/patch-src_pages.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/jemalloc/Makefile
diff -u pkgsrc/devel/jemalloc/Makefile:1.9 pkgsrc/devel/jemalloc/Makefile:1.10
--- pkgsrc/devel/jemalloc/Makefile:1.9  Wed May 17 16:36:46 2017
+++ pkgsrc/devel/jemalloc/Makefile      Sun Aug 27 12:12:25 2017
@@ -1,33 +1,29 @@
-# $NetBSD: Makefile,v 1.9 2017/05/17 16:36:46 gson Exp $
+# $NetBSD: Makefile,v 1.10 2017/08/27 12:12:25 adam Exp $
 
-DISTNAME=      jemalloc-4.5.0
-PKGREVISION=   1
+DISTNAME=      jemalloc-5.0.1
 CATEGORIES=    devel
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=jemalloc/}
-GITHUB_PROJECT=        jemalloc
-GITHUB_RELEASE=        ${DISTNAME:S/jemalloc-//}
+GITHUB_RELEASE=        ${PKGVERSION_NOREV}
 EXTRACT_SUFX=  .tar.bz2
 
 MAINTAINER=    gson%NetBSD.org@localhost
-HOMEPAGE=      http://www.canonware.com/jemalloc/
+HOMEPAGE=      http://jemalloc.net/
 COMMENT=       General purpose malloc(3) implementation
 LICENSE=       2-clause-bsd
 
 BUILD_DEPENDS+=                libxslt-[0-9]*:../../textproc/libxslt
 BUILD_DEPENDS+=                docbook-xsl-[0-9]*:../../textproc/docbook-xsl
 
-USE_TOOLS+=            autoconf automake aclocal gmake
 USE_LANGUAGES=         c
+USE_TOOLS+=            autoconf automake aclocal gmake perl:run
 GNU_CONFIGURE=         yes
 CONFIGURE_ARGS+=       --enable-cc-silence
 CONFIGURE_ARGS+=       --enable-xmalloc
 CONFIGURE_ARGS+=        --with-xslroot=${PREFIX}/share/xsl/docbook/
+PKGCONFIG_OVERRIDE=    jemalloc.pc.in
 
-USE_TOOLS+=            perl:run
 REPLACE_PERL=          bin/jeprof.in
 
-PKGCONFIG_OVERRIDE=    jemalloc.pc.in
-
 BUILD_TARGET=          all dist
 TEST_TARGET=           check
 TEST_ENV=              LD_LIBRARY_PATH=${WRKSRC}/lib

Index: pkgsrc/devel/jemalloc/distinfo
diff -u pkgsrc/devel/jemalloc/distinfo:1.6 pkgsrc/devel/jemalloc/distinfo:1.7
--- pkgsrc/devel/jemalloc/distinfo:1.6  Wed May 17 16:36:46 2017
+++ pkgsrc/devel/jemalloc/distinfo      Sun Aug 27 12:12:25 2017
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.6 2017/05/17 16:36:46 gson Exp $
+$NetBSD: distinfo,v 1.7 2017/08/27 12:12:25 adam 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 (jemalloc-5.0.1.tar.bz2) = 5c2c74b8bf773df6e813f0709f55d40a8256104d
+RMD160 (jemalloc-5.0.1.tar.bz2) = f3e6fdbd4b5a00fde7de6a2d77c716a085b09943
+SHA512 (jemalloc-5.0.1.tar.bz2) = 8cb5957a5724eb2bbad120cf0028ea8b2b14b4a416c1751b7c967351a7fd51135058ea0d3c4dc1d127c86f3aa7e9fd5ef101857110aabfdb7789427791c432c3
+Size (jemalloc-5.0.1.tar.bz2) = 499300 bytes
 SHA1 (patch-Makefile.in) = 62e04375dec9aab678fed5bc32559deb942e799f
-SHA1 (patch-src_pages.c) = 269ea1da44585caf3635b4b66b85db9e56124f08
+SHA1 (patch-src_pages.c) = 7c9eea2409b283c5dd80e52349c4dda26ae5befa

Index: pkgsrc/devel/jemalloc/patches/patch-src_pages.c
diff -u pkgsrc/devel/jemalloc/patches/patch-src_pages.c:1.1 pkgsrc/devel/jemalloc/patches/patch-src_pages.c:1.2
--- pkgsrc/devel/jemalloc/patches/patch-src_pages.c:1.1 Wed May 17 16:36:46 2017
+++ pkgsrc/devel/jemalloc/patches/patch-src_pages.c     Sun Aug 27 12:12:25 2017
@@ -1,14 +1,14 @@
-$NetBSD: patch-src_pages.c,v 1.1 2017/05/17 16:36:46 gson Exp $
+$NetBSD: patch-src_pages.c,v 1.2 2017/08/27 12:12:25 adam 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.orig   2017-07-02 00:44:25.000000000 +0000
 +++ src/pages.c
-@@ -296,6 +296,8 @@ pages_boot(void)
-       if (os_overcommits)
+@@ -414,6 +414,8 @@ pages_boot(void) {
                mmap_flags |= MAP_NORESERVE;
+       }
  #  endif
 +#elif defined __NetBSD__
 +      os_overcommits = true;



Home | Main Index | Thread Index | Old Index