forked from pool/mimalloc
- run tests in %check section
- update to 2.1.7 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/mimalloc?expand=0&rev=18
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
||||
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.osc
|
||||
3
mimalloc-2.1.2.tar.gz
Normal file
3
mimalloc-2.1.2.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:2b1bff6f717f9725c70bf8d79e4786da13de8a270059e4ba0bdd262ae7be46eb
|
||||
size 1163868
|
||||
3
mimalloc-2.1.7.tar.gz
Normal file
3
mimalloc-2.1.7.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:0eed39319f139afde8515010ff59baf24de9e47ea316a315398e8027d198202d
|
||||
size 1181422
|
||||
72
mimalloc.changes
Normal file
72
mimalloc.changes
Normal file
@@ -0,0 +1,72 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Jun 26 15:39:39 UTC 2024 - Michael Pujos <pujos.michael@gmail.com>
|
||||
|
||||
- run tests in %check section
|
||||
- update to 2.1.7:
|
||||
* Fix build issues on less common platforms
|
||||
* Started upstreaming patches from the CPython integration
|
||||
* Upstream vcpkg patches
|
||||
- update to 2.1.6:
|
||||
* Fix build errors on various (older) platforms
|
||||
* Refactored aligned allocation
|
||||
- update to 2.1.4:
|
||||
* Fixes various bugs and build issues
|
||||
* Add MI_LIBC_MUSL cmake flag for musl builds
|
||||
* Free-ing code is refactored into a separate module (free.c)
|
||||
* Mimalloc page info is simplified with the block size directly available
|
||||
(and new block_size_shift to improve aligned block free-ing)
|
||||
* New approach to collection of abandoned segments:
|
||||
When a thread terminates the segments it owns are abandoned
|
||||
(containing still live objects) and these can be reclaimed by other threads.
|
||||
We no longer use a list of abandoned segments but this is now done using
|
||||
bitmaps in arena's which is more concurrent (and more aggressive).
|
||||
Abandoned memory can now also be reclaimed if a thread frees an object
|
||||
in an abandoned page (which can be disabled using mi_option_abandoned_reclaim_on_free).
|
||||
The option mi_option_max_segment_reclaim gives a maximum percentage
|
||||
of abandoned segments that can be reclaimed per try (=10%).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Oct 10 10:35:32 UTC 2023 - ming li <mli@suse.com>
|
||||
|
||||
- update to 2.1.2:
|
||||
* remove segment-cache
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jan 5 08:04:19 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- update to 2.0.9:
|
||||
* support for arbitrary alignment
|
||||
* see https://github.com/microsoft/mimalloc/compare/v2.0.7...v2.0.9
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Nov 23 20:16:46 UTC 2022 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- update to 2.0.7:
|
||||
* valgrind support
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jul 26 04:44:09 UTC 2022 - Martin Liška <mliska@suse.cz>
|
||||
|
||||
- Update sover to 2.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun May 29 19:39:52 UTC 2022 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- update to 2.0.6:
|
||||
* long list of fixes, see https://github.com/microsoft/mimalloc/compare/v2.0.3...v2.0.6
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Feb 1 09:52:20 UTC 2022 - Martin Liška <mliska@suse.cz>
|
||||
|
||||
- Fix libname.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jan 31 16:41:47 UTC 2022 - Jan Engelhardt <jengelh@inai.de>
|
||||
|
||||
- Make performane claims more concrete; drop
|
||||
project history from description.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jan 31 10:19:32 UTC 2022 - Martin Liška <mliska@suse.cz>
|
||||
|
||||
- Initial package version 2.0.3.
|
||||
95
mimalloc.spec
Normal file
95
mimalloc.spec
Normal file
@@ -0,0 +1,95 @@
|
||||
#
|
||||
# spec file for package mimalloc
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
# Copyright (c) 2020, Martin Hauke <mardnh@gmx.de>
|
||||
#
|
||||
# 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.
|
||||
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%global sover 2
|
||||
%global libname libmimalloc%{sover}
|
||||
Name: mimalloc
|
||||
Version: 2.1.7
|
||||
Release: 0
|
||||
Summary: A compact general purpose allocator
|
||||
License: MIT
|
||||
Group: Development/Libraries/C and C++
|
||||
URL: https://github.com/microsoft/mimalloc
|
||||
Source: https://github.com/microsoft/mimalloc/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||
BuildRequires: cmake
|
||||
BuildRequires: gcc-c++
|
||||
|
||||
%description
|
||||
This is a general purpose allocator. It is a drop-in replacement for
|
||||
malloc and can be used in other programs without code changes.
|
||||
|
||||
Performance characteristics in comparison to allocators like tcmalloc 2.7,
|
||||
jemalloc 5.2.1 and glibc 2.31 is favorable, with generally 6%% or better in
|
||||
timing, depending on the particular workload.
|
||||
|
||||
%package -n %{libname}
|
||||
Summary: A compact general purpose allocator
|
||||
Group: System/Libraries
|
||||
Obsoletes: libmimalloc2_0
|
||||
|
||||
%description -n %{libname}
|
||||
This is a general purpose allocator. It is a drop-in replacement for
|
||||
malloc and can be used in other programs without code changes.
|
||||
|
||||
Performance characteristics in comparison to allocators like tcmalloc 2.7,
|
||||
jemalloc 5.2.1 and glibc 2.31 is favorable, with generally 6%% or better in
|
||||
timing, depending on the particular workload.
|
||||
|
||||
%package devel
|
||||
Summary: Development files for mimalloc
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: %{libname} = %{version}
|
||||
|
||||
%description devel
|
||||
This is a general purpose allocator.
|
||||
It is a drop-in replacement for malloc and can be used in other
|
||||
programs without code changes.
|
||||
|
||||
This subpackage contains libraries and header files for developing
|
||||
applications that want to make use of mimalloc.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
%build
|
||||
%cmake -DMI_INSTALL_TOPLEVEL=ON -DMI_BUILD_OBJECT=OFF -DMI_BUILD_STATIC=OFF
|
||||
%make_build
|
||||
|
||||
%check
|
||||
cd %{__builddir}
|
||||
%make_build test
|
||||
|
||||
%install
|
||||
%cmake_install
|
||||
|
||||
%post -n %{libname} -p /sbin/ldconfig
|
||||
%postun -n %{libname} -p /sbin/ldconfig
|
||||
|
||||
%files -n %{libname}
|
||||
%license LICENSE
|
||||
%doc readme.md
|
||||
%{_libdir}/lib%{name}.so.*
|
||||
|
||||
%files devel
|
||||
%{_libdir}/lib%{name}.so
|
||||
%{_libdir}/cmake/%{name}/
|
||||
%{_libdir}/pkgconfig/%{name}.pc
|
||||
%{_includedir}/*
|
||||
|
||||
%changelog
|
||||
Reference in New Issue
Block a user