2011-10-13 18:05:06 +02:00
|
|
|
#
|
|
|
|
# spec file for package jemalloc
|
|
|
|
#
|
Accepting request 691467 from home:marxin:branches:devel:libraries:c_c++
- Add disable-test_prof_log_many_traces-test.patch in order
to workaround https://github.com/jemalloc/jemalloc/issues/1477.
- Update to version 5.2.0:
New features:
* Implement oversize_threshold, which uses a dedicated arena for allocations crossing the specified threshold to reduce fragmentation. (@interwq)
* Add extents usage information to stats. (@tyleretzel)
* Log time information for sampled allocations. (@tyleretzel)
* Support 0 size in sdallocx. (@djwatson)
* Output rate for certain counters in malloc_stats. (@zinoale)
* Add configure option --enable-readlinkat, which allows the use of readlinkat over readlink. (@davidtgoldblatt)
* Add configure options --{enable,disable}-{static,shared} to allow not building unwanted libraries. (@Ericson2314)
* Add configure option --disable-libdl to enable fully static builds. (@interwq)
* Add mallctl interfaces:
* opt.oversize_threshold (@interwq)
* stats.arenas.<i>.extent_avail (@tyleretzel)
* stats.arenas.<i>.extents.<j>.n{dirty,muzzy,retained} (@tyleretzel)
* stats.arenas.<i>.extents.<j>.{dirty,muzzy,retained}_bytes (@tyleretzel)
Portability improvements:
* Update MSVC builds. (@maksqwe, @rustyx)
* Workaround a compiler optimizer bug on s390x. (@rkmisra)
* Make use of pthread_set_name_np(3) on FreeBSD. (@trasz)
* Implement malloc_getcpu() to enable percpu_arena for windows. (@santagada)
* Link against -pthread instead of -lpthread. (@paravoid)
* Make background_thread not dependent on libdl. (@interwq)
* Add stringify to fix a linker directive issue on MSVC. (@daverigby)
* Detect and fall back when 8-bit atomics are unavailable. (@interwq)
* Fall back to the default pthread_create(3) if dlsym(3) fails. (@interwq)
Optimizations and refactors:
* Refactor the TSD module. (@davidtgoldblatt)
* Avoid taking extents_muzzy mutex when muzzy is disabled. (@interwq)
* Avoid taking large_mtx for auto arenas on the tcache flush path. (@interwq)
* Optimize ixalloc by avoiding a size lookup. (@interwq)
* Implement opt.oversize_threshold which uses a dedicated arena for requests crossing the threshold, also eagerly purges the oversize extents. Default the threshold to 8 MiB. (@interwq)
* Clean compilation with -Wextra. (@gnzlbg, @jasone)
* Refactor the size class module. (@davidtgoldblatt)
* Refactor the stats emitter. (@tyleretzel)
* Optimize pow2_ceil. (@rkmisra)
* Avoid runtime detection of lazy purging on FreeBSD. (@trasz)
* Optimize mmap(2) alignment handling on FreeBSD. (@trasz)
* Improve error handling for THP state initialization. (@jsteemann)
* Rework the malloc() fast path. (@djwatson)
* Rework the free() fast path. (@djwatson)
* Refactor and optimize the tcache fill / flush paths. (@djwatson)
* Optimize sync / lwsync on PowerPC. (@chmeeedalf)
* Bypass extent_dalloc() when retain is enabled. (@interwq)
* Optimize the locking on large deallocation. (@interwq)
* Reduce the number of pages committed from sanity checking in debug build. (@trasz, @interwq)
* Deprecate OSSpinLock. (@interwq)
* Lower the default number of background threads to 4 (when the feature is enabled). (@interwq)
* Optimize the trylock spin wait. (@djwatson)
* Use arena index for arena-matching checks. (@interwq)
* Avoid forced decay on thread termination when using background threads. (@interwq)
* Disable muzzy decay by default. (@djwatson, @interwq)
* Only initialize libgcc unwinder when profiling is enabled. (@paravoid, @interwq)
Bug fixes (all only relevant to jemalloc 5.x):
* Fix background thread index issues with max_background_threads. (@djwatson, @interwq)
* Fix stats output for opt.lg_extent_max_active_fit. (@interwq)
* Fix opt.prof_prefix initialization. (@davidtgoldblatt)
* Properly trigger decay on tcache destroy. (@interwq, @amosbird)
* Fix tcache.flush. (@interwq)
* Detect whether explicit extent zero out is necessary with huge pages or custom extent hooks, which may change the purge semantics. (@interwq)
* Fix a side effect caused by extent_max_active_fit combined with decay-based purging, where freed extents can accumulate and not be reused for an extended period of time. (@interwq, @mpghf)
* Fix a missing unlock on extent register error handling. (@zoulasc)
Testing:
* Simplify the Travis script output. (@gnzlbg)
* Update the test scripts for FreeBSD. (@devnexen)
* Add unit tests for the producer-consumer pattern. (@interwq)
* Add Cirrus-CI config for FreeBSD builds. (@jasone)
* Add size-matching sanity checks on tcache flush. (@davidtgoldblatt, @interwq)
Incompatible changes:
* Remove --with-lg-page-sizes. (@davidtgoldblatt)
Documentation:
* Attempt to build docs by default, however skip doc building when xsltproc is missing. (@interwq, @cmuellner)
- Change URL of the project.
OBS-URL: https://build.opensuse.org/request/show/691467
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/jemalloc?expand=0&rev=66
2019-04-04 12:13:32 +02:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2011-10-13 18:05:06 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2018-10-30 20:09:37 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-10-13 18:05:06 +02:00
|
|
|
#
|
|
|
|
|
2013-01-24 12:03:44 +01:00
|
|
|
|
2016-05-04 09:39:40 +02:00
|
|
|
%define lname libjemalloc2
|
2011-10-23 09:02:58 +02:00
|
|
|
Name: jemalloc
|
Accepting request 691467 from home:marxin:branches:devel:libraries:c_c++
- Add disable-test_prof_log_many_traces-test.patch in order
to workaround https://github.com/jemalloc/jemalloc/issues/1477.
- Update to version 5.2.0:
New features:
* Implement oversize_threshold, which uses a dedicated arena for allocations crossing the specified threshold to reduce fragmentation. (@interwq)
* Add extents usage information to stats. (@tyleretzel)
* Log time information for sampled allocations. (@tyleretzel)
* Support 0 size in sdallocx. (@djwatson)
* Output rate for certain counters in malloc_stats. (@zinoale)
* Add configure option --enable-readlinkat, which allows the use of readlinkat over readlink. (@davidtgoldblatt)
* Add configure options --{enable,disable}-{static,shared} to allow not building unwanted libraries. (@Ericson2314)
* Add configure option --disable-libdl to enable fully static builds. (@interwq)
* Add mallctl interfaces:
* opt.oversize_threshold (@interwq)
* stats.arenas.<i>.extent_avail (@tyleretzel)
* stats.arenas.<i>.extents.<j>.n{dirty,muzzy,retained} (@tyleretzel)
* stats.arenas.<i>.extents.<j>.{dirty,muzzy,retained}_bytes (@tyleretzel)
Portability improvements:
* Update MSVC builds. (@maksqwe, @rustyx)
* Workaround a compiler optimizer bug on s390x. (@rkmisra)
* Make use of pthread_set_name_np(3) on FreeBSD. (@trasz)
* Implement malloc_getcpu() to enable percpu_arena for windows. (@santagada)
* Link against -pthread instead of -lpthread. (@paravoid)
* Make background_thread not dependent on libdl. (@interwq)
* Add stringify to fix a linker directive issue on MSVC. (@daverigby)
* Detect and fall back when 8-bit atomics are unavailable. (@interwq)
* Fall back to the default pthread_create(3) if dlsym(3) fails. (@interwq)
Optimizations and refactors:
* Refactor the TSD module. (@davidtgoldblatt)
* Avoid taking extents_muzzy mutex when muzzy is disabled. (@interwq)
* Avoid taking large_mtx for auto arenas on the tcache flush path. (@interwq)
* Optimize ixalloc by avoiding a size lookup. (@interwq)
* Implement opt.oversize_threshold which uses a dedicated arena for requests crossing the threshold, also eagerly purges the oversize extents. Default the threshold to 8 MiB. (@interwq)
* Clean compilation with -Wextra. (@gnzlbg, @jasone)
* Refactor the size class module. (@davidtgoldblatt)
* Refactor the stats emitter. (@tyleretzel)
* Optimize pow2_ceil. (@rkmisra)
* Avoid runtime detection of lazy purging on FreeBSD. (@trasz)
* Optimize mmap(2) alignment handling on FreeBSD. (@trasz)
* Improve error handling for THP state initialization. (@jsteemann)
* Rework the malloc() fast path. (@djwatson)
* Rework the free() fast path. (@djwatson)
* Refactor and optimize the tcache fill / flush paths. (@djwatson)
* Optimize sync / lwsync on PowerPC. (@chmeeedalf)
* Bypass extent_dalloc() when retain is enabled. (@interwq)
* Optimize the locking on large deallocation. (@interwq)
* Reduce the number of pages committed from sanity checking in debug build. (@trasz, @interwq)
* Deprecate OSSpinLock. (@interwq)
* Lower the default number of background threads to 4 (when the feature is enabled). (@interwq)
* Optimize the trylock spin wait. (@djwatson)
* Use arena index for arena-matching checks. (@interwq)
* Avoid forced decay on thread termination when using background threads. (@interwq)
* Disable muzzy decay by default. (@djwatson, @interwq)
* Only initialize libgcc unwinder when profiling is enabled. (@paravoid, @interwq)
Bug fixes (all only relevant to jemalloc 5.x):
* Fix background thread index issues with max_background_threads. (@djwatson, @interwq)
* Fix stats output for opt.lg_extent_max_active_fit. (@interwq)
* Fix opt.prof_prefix initialization. (@davidtgoldblatt)
* Properly trigger decay on tcache destroy. (@interwq, @amosbird)
* Fix tcache.flush. (@interwq)
* Detect whether explicit extent zero out is necessary with huge pages or custom extent hooks, which may change the purge semantics. (@interwq)
* Fix a side effect caused by extent_max_active_fit combined with decay-based purging, where freed extents can accumulate and not be reused for an extended period of time. (@interwq, @mpghf)
* Fix a missing unlock on extent register error handling. (@zoulasc)
Testing:
* Simplify the Travis script output. (@gnzlbg)
* Update the test scripts for FreeBSD. (@devnexen)
* Add unit tests for the producer-consumer pattern. (@interwq)
* Add Cirrus-CI config for FreeBSD builds. (@jasone)
* Add size-matching sanity checks on tcache flush. (@davidtgoldblatt, @interwq)
Incompatible changes:
* Remove --with-lg-page-sizes. (@davidtgoldblatt)
Documentation:
* Attempt to build docs by default, however skip doc building when xsltproc is missing. (@interwq, @cmuellner)
- Change URL of the project.
OBS-URL: https://build.opensuse.org/request/show/691467
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/jemalloc?expand=0&rev=66
2019-04-04 12:13:32 +02:00
|
|
|
Version: 5.2.0
|
2011-10-23 09:02:58 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: General-purpose scalable concurrent malloc implementation
|
2013-01-24 12:03:44 +01:00
|
|
|
License: BSD-2-Clause
|
2011-10-23 09:02:58 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2019-04-04 13:53:02 +02:00
|
|
|
URL: http://jemalloc.net/
|
|
|
|
Source: https://github.com/jemalloc/jemalloc/releases/download/%version/jemalloc-%version.tar.bz2
|
Accepting request 691467 from home:marxin:branches:devel:libraries:c_c++
- Add disable-test_prof_log_many_traces-test.patch in order
to workaround https://github.com/jemalloc/jemalloc/issues/1477.
- Update to version 5.2.0:
New features:
* Implement oversize_threshold, which uses a dedicated arena for allocations crossing the specified threshold to reduce fragmentation. (@interwq)
* Add extents usage information to stats. (@tyleretzel)
* Log time information for sampled allocations. (@tyleretzel)
* Support 0 size in sdallocx. (@djwatson)
* Output rate for certain counters in malloc_stats. (@zinoale)
* Add configure option --enable-readlinkat, which allows the use of readlinkat over readlink. (@davidtgoldblatt)
* Add configure options --{enable,disable}-{static,shared} to allow not building unwanted libraries. (@Ericson2314)
* Add configure option --disable-libdl to enable fully static builds. (@interwq)
* Add mallctl interfaces:
* opt.oversize_threshold (@interwq)
* stats.arenas.<i>.extent_avail (@tyleretzel)
* stats.arenas.<i>.extents.<j>.n{dirty,muzzy,retained} (@tyleretzel)
* stats.arenas.<i>.extents.<j>.{dirty,muzzy,retained}_bytes (@tyleretzel)
Portability improvements:
* Update MSVC builds. (@maksqwe, @rustyx)
* Workaround a compiler optimizer bug on s390x. (@rkmisra)
* Make use of pthread_set_name_np(3) on FreeBSD. (@trasz)
* Implement malloc_getcpu() to enable percpu_arena for windows. (@santagada)
* Link against -pthread instead of -lpthread. (@paravoid)
* Make background_thread not dependent on libdl. (@interwq)
* Add stringify to fix a linker directive issue on MSVC. (@daverigby)
* Detect and fall back when 8-bit atomics are unavailable. (@interwq)
* Fall back to the default pthread_create(3) if dlsym(3) fails. (@interwq)
Optimizations and refactors:
* Refactor the TSD module. (@davidtgoldblatt)
* Avoid taking extents_muzzy mutex when muzzy is disabled. (@interwq)
* Avoid taking large_mtx for auto arenas on the tcache flush path. (@interwq)
* Optimize ixalloc by avoiding a size lookup. (@interwq)
* Implement opt.oversize_threshold which uses a dedicated arena for requests crossing the threshold, also eagerly purges the oversize extents. Default the threshold to 8 MiB. (@interwq)
* Clean compilation with -Wextra. (@gnzlbg, @jasone)
* Refactor the size class module. (@davidtgoldblatt)
* Refactor the stats emitter. (@tyleretzel)
* Optimize pow2_ceil. (@rkmisra)
* Avoid runtime detection of lazy purging on FreeBSD. (@trasz)
* Optimize mmap(2) alignment handling on FreeBSD. (@trasz)
* Improve error handling for THP state initialization. (@jsteemann)
* Rework the malloc() fast path. (@djwatson)
* Rework the free() fast path. (@djwatson)
* Refactor and optimize the tcache fill / flush paths. (@djwatson)
* Optimize sync / lwsync on PowerPC. (@chmeeedalf)
* Bypass extent_dalloc() when retain is enabled. (@interwq)
* Optimize the locking on large deallocation. (@interwq)
* Reduce the number of pages committed from sanity checking in debug build. (@trasz, @interwq)
* Deprecate OSSpinLock. (@interwq)
* Lower the default number of background threads to 4 (when the feature is enabled). (@interwq)
* Optimize the trylock spin wait. (@djwatson)
* Use arena index for arena-matching checks. (@interwq)
* Avoid forced decay on thread termination when using background threads. (@interwq)
* Disable muzzy decay by default. (@djwatson, @interwq)
* Only initialize libgcc unwinder when profiling is enabled. (@paravoid, @interwq)
Bug fixes (all only relevant to jemalloc 5.x):
* Fix background thread index issues with max_background_threads. (@djwatson, @interwq)
* Fix stats output for opt.lg_extent_max_active_fit. (@interwq)
* Fix opt.prof_prefix initialization. (@davidtgoldblatt)
* Properly trigger decay on tcache destroy. (@interwq, @amosbird)
* Fix tcache.flush. (@interwq)
* Detect whether explicit extent zero out is necessary with huge pages or custom extent hooks, which may change the purge semantics. (@interwq)
* Fix a side effect caused by extent_max_active_fit combined with decay-based purging, where freed extents can accumulate and not be reused for an extended period of time. (@interwq, @mpghf)
* Fix a missing unlock on extent register error handling. (@zoulasc)
Testing:
* Simplify the Travis script output. (@gnzlbg)
* Update the test scripts for FreeBSD. (@devnexen)
* Add unit tests for the producer-consumer pattern. (@interwq)
* Add Cirrus-CI config for FreeBSD builds. (@jasone)
* Add size-matching sanity checks on tcache flush. (@davidtgoldblatt, @interwq)
Incompatible changes:
* Remove --with-lg-page-sizes. (@davidtgoldblatt)
Documentation:
* Attempt to build docs by default, however skip doc building when xsltproc is missing. (@interwq, @cmuellner)
- Change URL of the project.
OBS-URL: https://build.opensuse.org/request/show/691467
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/jemalloc?expand=0&rev=66
2019-04-04 12:13:32 +02:00
|
|
|
Patch0: disable-test_prof_log_many_traces-test.patch
|
2011-10-23 09:02:58 +02:00
|
|
|
BuildRequires: docbook-xsl-stylesheets
|
|
|
|
BuildRequires: libxslt
|
2016-04-20 14:24:08 +02:00
|
|
|
BuildRequires: pkg-config
|
2016-05-04 10:52:43 +02:00
|
|
|
Requires: %lname = %version
|
2011-10-13 18:05:06 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
jemalloc is a general-purpose scalable concurrent malloc(3) implementation.
|
|
|
|
This package provides a shell wrapper script to run programs using jemalloc.
|
|
|
|
|
2016-05-04 10:52:43 +02:00
|
|
|
%package -n %lname
|
2011-10-23 09:02:58 +02:00
|
|
|
Summary: General-purpose scalable concurrent malloc implementation
|
|
|
|
Group: System/Libraries
|
2011-10-13 18:05:06 +02:00
|
|
|
|
2016-05-04 10:52:43 +02:00
|
|
|
%description -n %lname
|
2011-10-13 18:05:06 +02:00
|
|
|
General-purpose scalable concurrent malloc(3) implementation.
|
|
|
|
This distribution is the stand-alone "portable" version of jemalloc.
|
|
|
|
|
|
|
|
%package devel
|
2011-10-23 09:02:58 +02:00
|
|
|
Summary: Development files for jemalloc
|
|
|
|
Group: Development/Libraries/C and C++
|
2016-05-04 10:52:43 +02:00
|
|
|
Requires: %lname = %version
|
2011-10-13 18:05:06 +02:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
Headers for jemalloc, general-purpose scalable concurrent malloc(3)
|
|
|
|
implementation.
|
|
|
|
|
|
|
|
%prep
|
2012-09-04 10:28:27 +02:00
|
|
|
%setup -q
|
Accepting request 691467 from home:marxin:branches:devel:libraries:c_c++
- Add disable-test_prof_log_many_traces-test.patch in order
to workaround https://github.com/jemalloc/jemalloc/issues/1477.
- Update to version 5.2.0:
New features:
* Implement oversize_threshold, which uses a dedicated arena for allocations crossing the specified threshold to reduce fragmentation. (@interwq)
* Add extents usage information to stats. (@tyleretzel)
* Log time information for sampled allocations. (@tyleretzel)
* Support 0 size in sdallocx. (@djwatson)
* Output rate for certain counters in malloc_stats. (@zinoale)
* Add configure option --enable-readlinkat, which allows the use of readlinkat over readlink. (@davidtgoldblatt)
* Add configure options --{enable,disable}-{static,shared} to allow not building unwanted libraries. (@Ericson2314)
* Add configure option --disable-libdl to enable fully static builds. (@interwq)
* Add mallctl interfaces:
* opt.oversize_threshold (@interwq)
* stats.arenas.<i>.extent_avail (@tyleretzel)
* stats.arenas.<i>.extents.<j>.n{dirty,muzzy,retained} (@tyleretzel)
* stats.arenas.<i>.extents.<j>.{dirty,muzzy,retained}_bytes (@tyleretzel)
Portability improvements:
* Update MSVC builds. (@maksqwe, @rustyx)
* Workaround a compiler optimizer bug on s390x. (@rkmisra)
* Make use of pthread_set_name_np(3) on FreeBSD. (@trasz)
* Implement malloc_getcpu() to enable percpu_arena for windows. (@santagada)
* Link against -pthread instead of -lpthread. (@paravoid)
* Make background_thread not dependent on libdl. (@interwq)
* Add stringify to fix a linker directive issue on MSVC. (@daverigby)
* Detect and fall back when 8-bit atomics are unavailable. (@interwq)
* Fall back to the default pthread_create(3) if dlsym(3) fails. (@interwq)
Optimizations and refactors:
* Refactor the TSD module. (@davidtgoldblatt)
* Avoid taking extents_muzzy mutex when muzzy is disabled. (@interwq)
* Avoid taking large_mtx for auto arenas on the tcache flush path. (@interwq)
* Optimize ixalloc by avoiding a size lookup. (@interwq)
* Implement opt.oversize_threshold which uses a dedicated arena for requests crossing the threshold, also eagerly purges the oversize extents. Default the threshold to 8 MiB. (@interwq)
* Clean compilation with -Wextra. (@gnzlbg, @jasone)
* Refactor the size class module. (@davidtgoldblatt)
* Refactor the stats emitter. (@tyleretzel)
* Optimize pow2_ceil. (@rkmisra)
* Avoid runtime detection of lazy purging on FreeBSD. (@trasz)
* Optimize mmap(2) alignment handling on FreeBSD. (@trasz)
* Improve error handling for THP state initialization. (@jsteemann)
* Rework the malloc() fast path. (@djwatson)
* Rework the free() fast path. (@djwatson)
* Refactor and optimize the tcache fill / flush paths. (@djwatson)
* Optimize sync / lwsync on PowerPC. (@chmeeedalf)
* Bypass extent_dalloc() when retain is enabled. (@interwq)
* Optimize the locking on large deallocation. (@interwq)
* Reduce the number of pages committed from sanity checking in debug build. (@trasz, @interwq)
* Deprecate OSSpinLock. (@interwq)
* Lower the default number of background threads to 4 (when the feature is enabled). (@interwq)
* Optimize the trylock spin wait. (@djwatson)
* Use arena index for arena-matching checks. (@interwq)
* Avoid forced decay on thread termination when using background threads. (@interwq)
* Disable muzzy decay by default. (@djwatson, @interwq)
* Only initialize libgcc unwinder when profiling is enabled. (@paravoid, @interwq)
Bug fixes (all only relevant to jemalloc 5.x):
* Fix background thread index issues with max_background_threads. (@djwatson, @interwq)
* Fix stats output for opt.lg_extent_max_active_fit. (@interwq)
* Fix opt.prof_prefix initialization. (@davidtgoldblatt)
* Properly trigger decay on tcache destroy. (@interwq, @amosbird)
* Fix tcache.flush. (@interwq)
* Detect whether explicit extent zero out is necessary with huge pages or custom extent hooks, which may change the purge semantics. (@interwq)
* Fix a side effect caused by extent_max_active_fit combined with decay-based purging, where freed extents can accumulate and not be reused for an extended period of time. (@interwq, @mpghf)
* Fix a missing unlock on extent register error handling. (@zoulasc)
Testing:
* Simplify the Travis script output. (@gnzlbg)
* Update the test scripts for FreeBSD. (@devnexen)
* Add unit tests for the producer-consumer pattern. (@interwq)
* Add Cirrus-CI config for FreeBSD builds. (@jasone)
* Add size-matching sanity checks on tcache flush. (@davidtgoldblatt, @interwq)
Incompatible changes:
* Remove --with-lg-page-sizes. (@davidtgoldblatt)
Documentation:
* Attempt to build docs by default, however skip doc building when xsltproc is missing. (@interwq, @cmuellner)
- Change URL of the project.
OBS-URL: https://build.opensuse.org/request/show/691467
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/jemalloc?expand=0&rev=66
2019-04-04 12:13:32 +02:00
|
|
|
%patch0 -p1
|
2011-10-13 18:05:06 +02:00
|
|
|
|
|
|
|
%build
|
2016-05-04 10:52:43 +02:00
|
|
|
export EXTRA_CFLAGS="%optflags -std=gnu99"
|
2019-04-04 13:53:02 +02:00
|
|
|
%configure --disable-static \
|
2018-02-10 13:04:24 +01:00
|
|
|
%ifarch %arm
|
|
|
|
--disable-thp \
|
2018-08-22 16:07:30 +02:00
|
|
|
--disable-prof
|
|
|
|
%else
|
2018-10-30 20:09:37 +01:00
|
|
|
%ifarch ppc
|
|
|
|
--disable-prof
|
|
|
|
%else
|
2018-02-10 13:04:24 +01:00
|
|
|
--enable-prof
|
2018-10-30 20:09:37 +01:00
|
|
|
%endif
|
2018-08-22 16:07:30 +02:00
|
|
|
%endif
|
2018-02-10 13:04:24 +01:00
|
|
|
|
- Update to version 3.5.0
* Add the *allocx() API, which is a successor to the experimental *allocm()
API. The *allocx() functions are slightly simpler to use because they have
fewer parameters, they directly return the results of primary interest, and
mallocx()/rallocx() avoid the strict aliasing pitfall that
allocm()/rallocx() share with posix_memalign(). Note that *allocm() is
slated for removal in the next non-bugfix release.
* Add support for LinuxThreads.
* Unless heap profiling is enabled, disable floating point code and don't link
with libm. This, in combination with e.g. EXTRA_CFLAGS=-mno-sse on x64
systems, makes it possible to completely disable floating point register
use. Some versions of glibc neglect to save/restore caller-saved floating
point registers during dynamic lazy symbol loading, and the symbol loading
code uses whatever malloc the application happens to have linked/loaded
with, the result being potential floating point register corruption.
* Report ENOMEM rather than EINVAL if an OOM occurs during heap profiling
backtrace creation in imemalign(). This bug impacted posix_memalign() and
aligned_alloc().
* Fix a file descriptor leak in a prof_dump_maps() error path.
* Fix prof_dump() to close the dump file descriptor for all relevant error
paths.
* Fix rallocm() to use the arena specified by the ALLOCM_ARENA(s) flag for
allocation, not just deallocation.
* Fix a data race for large allocation stats counters.
* Fix a potential infinite loop during thread exit. This bug occurred on
Solaris, and could affect other platforms with similar pthreads TSD
implementations.
* Don't junk-fill reallocations unless usable size changes. This fixes a
violation of the *allocx()/*allocm() semantics.
* Fix growing large reallocation to junk fill new space.
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/jemalloc?expand=0&rev=17
2014-01-24 13:22:56 +01:00
|
|
|
make %{?_smp_mflags}
|
2011-10-13 18:05:06 +02:00
|
|
|
|
|
|
|
%install
|
2016-05-04 10:52:43 +02:00
|
|
|
b="%buildroot"
|
2019-04-04 13:53:02 +02:00
|
|
|
%make_install
|
2016-05-04 10:52:43 +02:00
|
|
|
if [ "%_docdir" != "%_datadir/doc" ]; then
|
|
|
|
# Makefile apparently ignored the --docdir in %%configure
|
|
|
|
mkdir -p "$b/%_docdir"
|
|
|
|
mv "$b/%_datadir/doc/jemalloc" "$b/%_docdir/%name"
|
2016-04-20 14:24:08 +02:00
|
|
|
fi
|
2011-10-13 18:05:06 +02:00
|
|
|
|
2013-03-07 21:58:42 +01:00
|
|
|
%check
|
2016-04-20 14:24:08 +02:00
|
|
|
export LD_LIBRARY_PATH="$PWD/lib:$LD_LIBRARY_PATH"
|
2016-05-04 09:39:40 +02:00
|
|
|
make %{?_smp_mflags} check
|
2013-03-07 21:58:42 +01:00
|
|
|
|
2016-05-04 10:52:43 +02:00
|
|
|
%post -n %lname -p /sbin/ldconfig
|
|
|
|
%postun -n %lname -p /sbin/ldconfig
|
2016-04-20 14:24:08 +02:00
|
|
|
|
2011-10-13 18:05:06 +02:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2016-05-04 10:52:43 +02:00
|
|
|
%_bindir/jemalloc.sh
|
|
|
|
%_bindir/jemalloc-config
|
|
|
|
%_bindir/jeprof
|
|
|
|
%_mandir/man*/*
|
|
|
|
%_docdir/%name
|
2011-10-13 18:05:06 +02:00
|
|
|
|
2016-05-04 10:52:43 +02:00
|
|
|
%files -n %lname
|
2011-10-13 18:05:06 +02:00
|
|
|
%defattr(-,root,root)
|
2015-09-16 10:53:50 +02:00
|
|
|
%doc ChangeLog COPYING README
|
2016-05-04 10:52:43 +02:00
|
|
|
%_libdir/libjemalloc.so.2*
|
2011-10-13 18:05:06 +02:00
|
|
|
|
|
|
|
%files devel
|
2016-04-20 14:24:18 +02:00
|
|
|
%defattr(-,root,root)
|
2016-05-04 10:52:43 +02:00
|
|
|
%_includedir/jemalloc
|
|
|
|
%_libdir/libjemalloc.so
|
|
|
|
%_libdir/pkgconfig/jemalloc.pc
|
2011-10-13 18:05:06 +02:00
|
|
|
|
2012-09-04 10:28:27 +02:00
|
|
|
%changelog
|