Commit Graph

163 Commits

Author SHA1 Message Date
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
Daan
df998563bc
Merge pull request #530 from Jarred-Sumner/bun
Add  MI_SKIP_COLLECT_ON_EXIT flag
2022-02-02 20:41:14 -08:00
Daan
f4e221917b
Merge branch 'dev' into bun 2022-02-02 19:56:27 -08:00
Daan
a3325a9b6f Merge branch 'master' into dev 2022-02-02 19:51:51 -08:00
Hans Loeblich
a5a87a109b
Include mimalloc-redirect.dll with cmake install 2022-01-26 17:39:58 -06:00
Jarred Sumner
d2e727f0e8 Add MI_SKIP_COLLECT_ON_EXIT flag 2022-01-18 21:11:12 -08:00
Daan Leijen
2cc400d600 update comment 2022-01-10 16:53:19 -08:00
Daan Leijen
05c2a51211 merge from master 2022-01-10 16:20:22 -08:00
akarin
3d91c0e737 cmake: export mimalloc-static as well
Otherwise a static only build would not be usable as cmake package
(as mimalloc.cmake wouldn't be generated).

Signed-off-by: akarin <i@akarin.info>
2021-12-26 18:17:53 +09:00
Frank Richter
969f3a6998 Add tests for zero-initialization functions 2021-12-21 16:20:56 +01:00
Frank Richter
51271ba8ea Replace redundant CMake code for tests with a loop 2021-12-21 12:54:15 +01:00
daan
ee3ae2a425 add deprecated notice 2021-12-15 08:53:55 -08:00
daan
144b4a2d3e link with libatomic automatically if found 2021-12-15 08:42:58 -08:00
daan
b7d33c2c33 fix MI_ prefix for libraries 2021-12-15 08:41:52 -08:00
Daan
69b6b24688 further improvements to installation directories 2021-12-14 18:29:14 -08:00
Daan
1bbc184082
Merge pull request #493 from viy2/pull_request_on_dev
Pull request for issue #490:  set SOVERSION for mimalloc shared lib
2021-12-13 17:26:12 -08:00
Daan
d575aacfde use find_library for pthread (issue #496) 2021-12-13 13:10:33 -08:00
Igor Vlasenko
acc64ee5cd added SOVERSION to mimalloc shared lib (issue #490)
This is a portability improvement.
A cross-platform library needs SOVERSION field for Unix platforms.
With SOVERSION field cmake itself will do proper management of
libmimalloc.so.SOVERSION -> libmimalloc.so.VERSION symlink on Unix,
so a piece of code that tried to emulate this behavior manually
is no more needed and is removed here too.
2021-11-28 19:59:09 +02:00
daan
1c22650719 remove no-invalid-memory-model supression 2021-11-15 10:52:09 -08:00
Daan
5e55525e5e
Merge pull request #483 from joy4eg/install-dirs-dev
cmake: removed hardcoded names for top level configuration
2021-11-14 14:49:48 -08:00
daan
c56be7ac5a show cflags in cmake; fix -fno-builtin-malloc flag 2021-11-13 13:30:03 -08:00
Daan
c47de7eb90 improve macOS overriding 2021-11-04 18:55:12 -07:00
Daan
32ee13f41e improve macOS M1 performance; use interpose in combination with zone's; add -fno-builtin-malloc flag in building with MI_OVERRIDE 2021-11-02 21:54:44 -07:00