Daan
4aa97336f7
remove the need for cmake patch in vcpkg port
2024-05-21 12:06:52 -07:00
Daan
9cd7e4cc68
rename library check to find_link_library
2024-05-19 15:43:15 -07:00
Daan
f739e4f2c3
check all link libraries (pthread, rt, and atomic) via check_linker_flag first before using find_library (see also issue #898
2024-05-19 15:38:26 -07:00
Daan
03224e17a0
bump cmake required version to 3.18 and detect libatomic more reliably, see pr #898
2024-05-19 13:25:31 -07:00
Daan
0f6d8293c7
use local dynamic tls for static MUSL builds (see issue #644 )
2024-05-11 08:08:03 -07:00
Daan
e46c1145a5
add separate MI_LIBC_MUSL option (issue #644 )
2024-04-20 16:19:59 -07:00
Daan Leijen
07ae64bd81
faster check for NULL in mi_free by combining with masking
2024-03-24 10:39:22 -07:00
Daan
7df348e2ea
fix typo, #756
2024-03-02 17:07:09 -08:00
Daan
128c7c1876
cleanup thp disable a bit
2024-03-02 16:55:13 -08:00
Daan
182583d3dd
Merge branch 'dev' into dev_thp_disable
2024-03-02 16:49:27 -08:00
Daan
c541a9b32e
Revert setting hardcoded install paths on Haiku #788 , by @begasus
2024-03-02 16:44:06 -08:00
Daan Leijen
3966953b7f
prefer using __builtin_thread_pointer over assembly primitives. Fixes #851 and #852 as well.
2024-03-02 11:50:57 -08:00
David Carlier
388d1aa9bd
new Linux/Android option proposal.
...
Allowing to disable transparent huge pages on Linux/Android, so
we avoid affecting the whole system (such as /sys/kernel/mm/transparent_hugepage/enabled).
2023-07-14 21:55:30 +01:00
daanx
4a85f32f8e
add libc.c source file
2023-05-19 10:24:39 -07:00
Daan
e74159486b
remove deprecated from description (issue #737 )
2023-04-25 10:21:34 -07:00
daanx
a0bd338d96
undeprecate MI_INSTALL_TOPLEVEL (issue #737 )
2023-04-25 08:25:50 -07:00
daanx
a2e1d2b893
add segment map to track valid pointers
2023-04-04 16:00:17 -07:00
daanx
77766e20a6
use only arena's instead of regions
2023-04-04 14:58:06 -07:00
Daan Leijen
accdc4de70
fix MI_SKIP_COLLECT_ON_EXIT syntax (pr #671 by @Unsttopabull)
2023-03-29 16:17:10 -07:00
Daan
c2a2533fba
fix haiku compilation (pr #679 )
2023-03-29 16:02:46 -07:00
Daan Leijen
651ff2c68b
fix cmake for windows
2023-03-29 11:55:00 -07:00
Daan Leijen
2440e60d95
copy static.o to the cmake directory (issue #706 )
2023-03-29 11:48:01 -07:00
Daan Leijen
c0c762611c
add prim/osx directory
2023-03-20 10:49:56 -07:00
Daan Leijen
3ebcc0bac4
fix syntax in cmakelists
2023-03-16 20:13:21 -07:00
Daan Leijen
1a99efc671
integrate ETW windows event tracing into mimalloc as another track tool
2023-03-16 20:08:43 -07:00
Daan Leijen
08a01d26dc
initial commit of new primitive layer
2023-03-14 16:54:46 -07:00
Daan Leijen
2e6ab0f230
add documentation for tracking tools; rename with prefix MI_TRACK_tool
2023-03-06 09:02:38 -08:00
Daan
056c2ce45b
match track free size to tracked malloc size
2023-03-05 11:01:51 -08:00
Daan
20ae35a1d4
remove accidental -fsanitize
2023-03-04 16:03:14 -08:00
Daan
6dcebdc303
fix sizes in memory tracking and padding for huge alignments
2023-03-04 14:49:02 -08:00
Daan
e24c7c9de6
fix asan compilation on macOSX
2023-03-04 09:58:17 -08:00
Daan Leijen
b701d4cbfa
bump cmake minimal version to 3.13 to support CMAKE_INTERPROCEDURAL_OPTIMIZATION -- see PR 656.
2022-12-19 18:39:52 -08:00
Johannes Schindelin
745a34f475
Fix whitespace
...
This mostly deletes trailing spaces.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2022-12-03 00:24:20 +01:00
Daan Leijen
10981ab122
add initial support for using mimalloc with address sanitizer support; use -DMI_ASAN=ON
2022-11-28 10:55:19 -08:00
Daan
631f22fbda
change library linkage to PRIVATE (issue #646 )
2022-11-22 10:54:40 -08:00
daan
3ad4639aea
fix atomic lib reference, see PR #586
2022-10-31 15:53:36 -07:00
daan
7cb1fdc44e
nicer style for pc_libraries
2022-10-31 15:49:04 -07:00
Daan
907d04c27c
Merge pull request #595 from eli-schwartz/pkg-config
...
cmake: add pkg-config file
2022-10-31 15:42:08 -07:00
Daan
4c241139e9
Merge pull request #588 from TApplencourt/dev
...
Add support for IntelLLVM
2022-10-31 15:32:31 -07:00
daan
d8dd297974
add cmake option MI_WIN_REDIRECT to be able to explicitly disable linking with mimalloc-redirect on windows; always OFF on ARM, fixes issue #591 and #590
2022-10-31 15:26:21 -07:00
daan
74d002b61c
better cmake process for MI_VALGRIND
2022-10-30 14:20:35 -07:00
daan
886fd7d1b8
add cmakefile MI_VALGRIND option
2022-10-30 12:49:29 -07:00
Eli Schwartz
eb97236652
cmake: add pkg-config file
...
pkg-config allows using the library in build systems that are not cmake,
by exporting the same information from the cmake -config files in a
buildsystem-neutral format.
Fixes #16
2022-06-19 14:45:44 -04:00
Thomas Applencourt
8cb6ba2221
add support for IntelLLVM
2022-06-06 16:18:33 +00:00
Daan Leijen
8d6a9df752
update windows pipeline to 2022
2022-04-14 16:47:43 -07:00
Daan Leijen
45044da101
do not turn on C++ compilation on msvc by default
2022-04-14 16:43:10 -07:00
Daan
25ecec3c3b
fix for dynamic overriding on macOS; add warning about C++ compilation (as that does not interact well with interpose)
2022-04-07 16:12:16 -07:00
daan
38639a08c8
fix test-api-fill c++ compilation
2022-02-10 11:58:25 -08:00
daan
ccbc8ae0bb
add huge allocation test (see #544 by @Tiran)
2022-02-10 11:46:28 -08:00
Daan
08e9d4b6c1
small fixes
2022-02-03 15:56:53 -08:00