- Update to version 5.1.0:
* remove patches: 0001-ARM-Don-t-extend-bit-LG_VADDR-to-compute-high-addres.patch and 0001-remove-CPU_SPINWAIT.patch. New features: * Implement transparent huge page support for internal metadata. (@interwq) * Add opt.thp to allow enabling / disabling transparent huge pages for all mappings. (@interwq) * Add maximum background thread count option. (@djwatson) * Allow prof_active to control opt.lg_prof_interval and prof.gdump. (@interwq) * Allow arena index lookup based on allocation addresses via mallctl. (@lionkov) * Allow disabling initial-exec TLS model. (@davidtgoldblatt, @KenMacD) * Add opt.lg_extent_max_active_fit to set the max ratio between the size of the active extent selected (to split off from) and the size of the requested allocation. (@interwq, @davidtgoldblatt) * Add retain_grow_limit to set the max size when growing virtual address space. (@interwq) * Add mallctl interfaces: * arena.<i>.retain_grow_limit (@interwq) * arenas.lookup (@lionkov) * max_background_threads (@djwatson) * opt.lg_extent_max_active_fit (@interwq) * opt.max_background_threads (@djwatson) * opt.metadata_thp (@interwq) * opt.thp (@interwq) * stats.metadata_thp (@interwq) Portability improvements: * Support GNU/kFreeBSD configuration. (@paravoid) * Support m68k, nios2 and SH3 architectures. (@paravoid) * Fall back to FD_CLOEXEC when O_CLOEXEC is unavailable. (@zonyitoo) * Fix symbol listing for cross-compiling. (@tamird) * Fix high bits computation on ARM. (@davidtgoldblatt, @paravoid) * Disable the CPU_SPINWAIT macro for Power. (@davidtgoldblatt, @marxin) * Fix MSVC 2015 & 2017 builds. (@rustyx) * Improve RISC-V support. (@EdSchouten) OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/jemalloc?expand=0&rev=58
This commit is contained in:
parent
ad7eda2cb1
commit
f5dccfaafc
@ -1,42 +0,0 @@
|
||||
From 7a8bc7172b17e219b3603e99c8da44efb283e652 Mon Sep 17 00:00:00 2001
|
||||
From: David Goldblatt <davidgoldblatt@fb.com>
|
||||
Date: Fri, 29 Sep 2017 13:54:08 -0700
|
||||
Subject: [PATCH] ARM: Don't extend bit LG_VADDR to compute high address bits.
|
||||
|
||||
In userspace ARM on Linux, zero-ing the high bits is the correct way to do this.
|
||||
This doesn't fix the fact that we currently set LG_VADDR to 48 on ARM, when in
|
||||
fact larger virtual address sizes are coming soon. We'll cross that bridge when
|
||||
we come to it.
|
||||
---
|
||||
include/jemalloc/internal/rtree.h | 12 ++++++++++++
|
||||
1 file changed, 12 insertions(+)
|
||||
|
||||
diff --git a/include/jemalloc/internal/rtree.h b/include/jemalloc/internal/rtree.h
|
||||
index b5d4db39..4563db23 100644
|
||||
--- a/include/jemalloc/internal/rtree.h
|
||||
+++ b/include/jemalloc/internal/rtree.h
|
||||
@@ -178,9 +178,21 @@ rtree_leaf_elm_bits_read(tsdn_t *tsdn, rtree_t *rtree, rtree_leaf_elm_t *elm,
|
||||
|
||||
JEMALLOC_ALWAYS_INLINE extent_t *
|
||||
rtree_leaf_elm_bits_extent_get(uintptr_t bits) {
|
||||
+# ifdef __aarch64__
|
||||
+ /*
|
||||
+ * aarch64 doesn't sign extend the highest virtual address bit to set
|
||||
+ * the higher ones. Instead, the high bits gets zeroed.
|
||||
+ */
|
||||
+ uintptr_t high_bit_mask = ((uintptr_t)1 << LG_VADDR) - 1;
|
||||
+ /* Mask off the slab bit. */
|
||||
+ uintptr_t low_bit_mask = ~(uintptr_t)1;
|
||||
+ uintptr_t mask = high_bit_mask & low_bit_mask;
|
||||
+ return (extent_t *)(bits & mask);
|
||||
+# else
|
||||
/* Restore sign-extended high bits, mask slab bit. */
|
||||
return (extent_t *)((uintptr_t)((intptr_t)(bits << RTREE_NHIB) >>
|
||||
RTREE_NHIB) & ~((uintptr_t)0x1));
|
||||
+# endif
|
||||
}
|
||||
|
||||
JEMALLOC_ALWAYS_INLINE szind_t
|
||||
--
|
||||
2.14.2
|
||||
|
@ -1,16 +0,0 @@
|
||||
--- a/configure 2017-09-12 12:42:21.626542578 +0200
|
||||
+++ b/configure 2017-09-12 12:42:24.046589256 +0200
|
||||
@@ -6864,12 +6852,11 @@
|
||||
fi
|
||||
fi
|
||||
;;
|
||||
- powerpc*)
|
||||
+ powerpc)
|
||||
cat >>confdefs.h <<_ACEOF
|
||||
#define HAVE_ALTIVEC
|
||||
_ACEOF
|
||||
|
||||
- CPU_SPINWAIT='__asm__ volatile("or 31,31,31")'
|
||||
;;
|
||||
*)
|
||||
;;
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:4814781d395b0ef093b21a08e8e6e0bd3dab8762f9935bbfb71679b0dea7c3e9
|
||||
size 499300
|
3
jemalloc-5.1.0.tar.bz2
Normal file
3
jemalloc-5.1.0.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:5396e61cc6103ac393136c309fae09e44d74743c86f90e266948c50f3dbb7268
|
||||
size 515622
|
@ -1,3 +1,93 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu May 10 08:51:13 UTC 2018 - mliska@suse.cz
|
||||
|
||||
- Update to version 5.1.0:
|
||||
* remove patches: 0001-ARM-Don-t-extend-bit-LG_VADDR-to-compute-high-addres.patch
|
||||
and 0001-remove-CPU_SPINWAIT.patch.
|
||||
|
||||
New features:
|
||||
* Implement transparent huge page support for internal metadata. (@interwq)
|
||||
* Add opt.thp to allow enabling / disabling transparent huge pages for all mappings. (@interwq)
|
||||
* Add maximum background thread count option. (@djwatson)
|
||||
* Allow prof_active to control opt.lg_prof_interval and prof.gdump. (@interwq)
|
||||
* Allow arena index lookup based on allocation addresses via mallctl. (@lionkov)
|
||||
* Allow disabling initial-exec TLS model. (@davidtgoldblatt, @KenMacD)
|
||||
* Add opt.lg_extent_max_active_fit to set the max ratio between the size of the active extent selected (to split off from) and the size of the requested allocation. (@interwq, @davidtgoldblatt)
|
||||
* Add retain_grow_limit to set the max size when growing virtual address space. (@interwq)
|
||||
* Add mallctl interfaces:
|
||||
* arena.<i>.retain_grow_limit (@interwq)
|
||||
* arenas.lookup (@lionkov)
|
||||
* max_background_threads (@djwatson)
|
||||
* opt.lg_extent_max_active_fit (@interwq)
|
||||
* opt.max_background_threads (@djwatson)
|
||||
* opt.metadata_thp (@interwq)
|
||||
* opt.thp (@interwq)
|
||||
* stats.metadata_thp (@interwq)
|
||||
|
||||
Portability improvements:
|
||||
* Support GNU/kFreeBSD configuration. (@paravoid)
|
||||
* Support m68k, nios2 and SH3 architectures. (@paravoid)
|
||||
* Fall back to FD_CLOEXEC when O_CLOEXEC is unavailable. (@zonyitoo)
|
||||
* Fix symbol listing for cross-compiling. (@tamird)
|
||||
* Fix high bits computation on ARM. (@davidtgoldblatt, @paravoid)
|
||||
* Disable the CPU_SPINWAIT macro for Power. (@davidtgoldblatt, @marxin)
|
||||
* Fix MSVC 2015 & 2017 builds. (@rustyx)
|
||||
* Improve RISC-V support. (@EdSchouten)
|
||||
* Set name mangling script in strict mode. (@nicolov)
|
||||
* Avoid MADV_HUGEPAGE on ARM. (@marxin)
|
||||
* Modify configure to determine return value of strerror_r. (@davidtgoldblatt, @cferris1000)
|
||||
* Make sure CXXFLAGS is tested with CPP compiler. (@nehaljwani)
|
||||
* Fix 32-bit build on MSVC. (@rustyx)
|
||||
* Fix external symbol on MSVC. (@maksqwe)
|
||||
* Avoid a printf format specifier warning. (@jasone)
|
||||
* Add configure option --disable-initial-exec-tls which can allow jemalloc to be dynamically loaded after program startup. (@davidtgoldblatt, @KenMacD)
|
||||
* AArch64: Add ILP32 support. (@cmuellner)
|
||||
* Add --with-lg-vaddr configure option to support cross compiling. (@cmuellner, @davidtgoldblatt)
|
||||
|
||||
Optimizations and refactors:
|
||||
* Improve active extent fit with extent_max_active_fit. This considerably reduces fragmentation over time and improves virtual memory and metadata usage. (@davidtgoldblatt, @interwq)
|
||||
* Eagerly coalesce large extents to reduce fragmentation. (@interwq)
|
||||
* sdallocx: only read size info when page aligned (i.e. possibly sampled), which speeds up the sized deallocation path significantly. (@interwq)
|
||||
* Avoid attempting new mappings for in place expansion with retain, since it rarely succeeds in practice and causes high overhead. (@interwq)
|
||||
* Refactor OOM handling in newImpl. (@wqfish)
|
||||
* Add internal fine-grained logging functionality for debugging use. (@davidtgoldblatt)
|
||||
* Refactor arena / tcache interactions. (@davidtgoldblatt)
|
||||
* Refactor extent management with dumpable flag. (@davidtgoldblatt)
|
||||
* Add runtime detection of lazy purging. (@interwq)
|
||||
* Use pairing heap instead of red-black tree for extents_avail. (@djwatson)
|
||||
* Use sysctl on startup in FreeBSD. (@trasz)
|
||||
* Use thread local prng state instead of atomic. (@djwatson)
|
||||
* Make decay to always purge one more extent than before, because in practice large extents are usually the ones that cross the decay threshold. Purging the additional extent helps save memory as well as reduce VM fragmentation. (@interwq)
|
||||
* Fast division by dynamic values. (@davidtgoldblatt)
|
||||
* Improve the fit for aligned allocation. (@interwq, @edwinsmith)
|
||||
* Refactor extent_t bitpacking. (@rkmisra)
|
||||
* Optimize the generated assembly for ticker operations. (@davidtgoldblatt)
|
||||
* Convert stats printing to use a structured text emitter. (@davidtgoldblatt)
|
||||
* Remove preserve_lru feature for extents management. (@djwatson)
|
||||
* Consolidate two memory loads into one on the fast deallocation path. (@davidtgoldblatt, @interwq)
|
||||
|
||||
Bug fixes (most of the issues are only relevant to jemalloc 5.0):
|
||||
* Fix deadlock with multithreaded fork in OS X. (@davidtgoldblatt)
|
||||
* Validate returned file descriptor before use. (@zonyitoo)
|
||||
* Fix a few background thread initialization and shutdown issues. (@interwq)
|
||||
* Fix an extent coalesce + decay race by taking both coalescing extents off the LRU list. (@interwq)
|
||||
* Fix potentially unbound increase during decay, caused by one thread keep stashing memory to purge while other threads generating new pages. The number of pages to purge is checked to prevent this. (@interwq)
|
||||
* Fix a FreeBSD bootstrap assertion. (@strejda, @interwq)
|
||||
* Handle 32 bit mutex counters. (@rkmisra)
|
||||
* Fix a indexing bug when creating background threads. (@davidtgoldblatt, @binliu19)
|
||||
* Fix arguments passed to extent_init. (@yuleniwo, @interwq)
|
||||
* Fix addresses used for ordering mutexes. (@rkmisra)
|
||||
* Fix abort_conf processing during bootstrap. (@interwq)
|
||||
* Fix include path order for out-of-tree builds. (@cmuellner)
|
||||
|
||||
Incompatible changes:
|
||||
* Remove --disable-thp. (@interwq)
|
||||
* Remove mallctl interfaces:
|
||||
* config.thp (@interwq)
|
||||
|
||||
Documentation:
|
||||
* Add TUNING.md. (@interwq, @davidtgoldblatt, @djwatson)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Feb 10 09:52:38 UTC 2018 - guillaume@opensuse.org
|
||||
|
||||
|
@ -18,15 +18,13 @@
|
||||
|
||||
%define lname libjemalloc2
|
||||
Name: jemalloc
|
||||
Version: 5.0.1
|
||||
Version: 5.1.0
|
||||
Release: 0
|
||||
Summary: General-purpose scalable concurrent malloc implementation
|
||||
License: BSD-2-Clause
|
||||
Group: Development/Libraries/C and C++
|
||||
Url: http://canonware.com/jemalloc/
|
||||
Source: https://github.com/jemalloc/jemalloc/releases/download/%{version}/jemalloc-%{version}.tar.bz2
|
||||
Patch0: 0001-remove-CPU_SPINWAIT.patch
|
||||
Patch1: 0001-ARM-Don-t-extend-bit-LG_VADDR-to-compute-high-addres.patch
|
||||
BuildRequires: docbook-xsl-stylesheets
|
||||
BuildRequires: libxslt
|
||||
BuildRequires: pkg-config
|
||||
@ -68,8 +66,6 @@ malloc(3) implementation.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
|
||||
%build
|
||||
export EXTRA_CFLAGS="%optflags -std=gnu99"
|
||||
|
Loading…
x
Reference in New Issue
Block a user