Commit graph

2947 commits

Author SHA1 Message Date
_ClearEdge
142c550963 fix mi_clz and mi_ctz having undefined behavior due to uninitialized variable
fixes:
- issues while compiled with /os(like frozen program at startup)
- sometimes mi_bchunk_try_clearNX or mi_bchunk_try_find_and_clearNX fails even if it's compiled without /os while program is running
2025-05-02 23:23:20 +09:00
Daan
61f3ffd2a6 Merge branch 'dev' into dev3 2025-04-13 19:57:28 -07:00
Daan
fae61ed946 fix assertion in mi_free_size (issue #754) 2025-04-13 19:56:49 -07:00
Daan
3bc90fbd71 Merge branch 'dev' into dev3 2025-04-13 19:52:45 -07:00
Daan
a5298dd48f Merge remote-tracking branch 'refs/remotes/origin/dev' into dev 2025-04-13 19:50:59 -07:00
Daan
7543e8989a validate pointer before assertion in mi_free_size (issue #754) 2025-04-13 19:49:47 -07:00
Daan
ccda6b576e Merge branch 'dev' into dev3 2025-04-08 13:57:17 -07:00
Daan
951538d469 fix prctl.h includes for alpine linux/musl (hopefully fixes #1065, #1066, #1067) 2025-04-08 13:56:31 -07:00
Daan
bc8eca8bf2 typo 2025-04-02 12:09:09 -07:00
Daan
c6efd76933 Merge branch 'dev' into dev3 2025-04-02 11:23:17 -07:00
daanx
8c99ac1bbd fix typo 2025-04-02 11:16:33 -07:00
daanx
4d61467328 Merge branch 'dev' into dev3 2025-04-02 10:50:43 -07:00
daanx
d767dbfbb4 use C++ compilation with clang-cl (as well as msvc) on Windows 2025-04-02 10:50:36 -07:00
daanx
26e4632287 merge from dev 2025-04-02 10:45:18 -07:00
daanx
5a58df6534 fix signed compare warning 2025-04-02 10:40:30 -07:00
daanx
3c3600f85f add atomic_cas_ptr_strong_acq_rel 2025-04-02 10:36:01 -07:00
daanx
235a0390ee refactor numa_node_count 2025-04-02 10:34:00 -07:00
daanx
34875aef71 fix build error on msvc/clang-cl in C mode (issue #1060) 2025-04-02 10:17:29 -07:00
daanx
32788fa93f Merge branch 'dev3' of https://github.com/microsoft/mimalloc into dev3 2025-03-31 14:46:53 -07:00
Daan
14220b7052 Merge branch 'dev' into dev3 2025-03-31 14:45:17 -07:00
Daan
77b622511a fix alpine compilation with prctl.h (issue #1059) 2025-03-31 14:44:46 -07:00
Daan
57a9c1656f add comment 2025-03-31 11:27:31 -07:00
daanx
78e2684cd0 Merge branch 'dev3' of https://github.com/microsoft/mimalloc into dev3 2025-03-31 11:25:58 -07:00
Daan
19339bde0a Merge branch 'dev' into dev3 2025-03-31 11:02:20 -07:00
Daan
e1110cdb9f nicer cmake logic for windows override test 2025-03-31 11:02:10 -07:00
Daan
52ae098c27 merge from dev 2025-03-31 11:01:07 -07:00
Daan
a9e9467429 make dynamic override test verbose 2025-03-31 11:00:05 -07:00
Daan
3f8bf3d258 merge from dev 2025-03-31 10:57:57 -07:00
Daan
07743454e5 fix dynamic override test on non-windows platforms 2025-03-31 10:57:16 -07:00
Daan
71b3e16171 fix invalid pointer detection in release mode (issue #1051 and #1053) 2025-03-31 10:54:12 -07:00
Daan
a73c3cc7e2 fix dynamic override test on non-windows platforms 2025-03-31 10:53:26 -07:00
Daan
88810f784d Merge branch 'dev' into dev3 2025-03-30 16:15:34 -07:00
Daan
cbab63f6c9 fix release build warning (unused mi_stat_total_print) 2025-03-30 16:15:27 -07:00
Daan
f2539bbe34 update readme 2025-03-28 15:37:11 -07:00
Daan
7d4ee62386 bump version to 3.0.4 for further development 2025-03-28 14:23:18 -07:00
Daan
a78374d816 bump version to 1.9.4 for further development 2025-03-28 14:22:02 -07:00
Daan
51c09e7b6a Merge branch 'dev' into dev3 2025-03-28 14:19:26 -07:00
Daan
8a81fc73c8 update readme 2025-03-28 14:18:28 -07:00
Daan
9228b4814a make mi_options static, rename out_buf for the debug extension 2025-03-28 13:49:14 -07:00
Daan
11cfb42fa0 Merge branch 'dev' into dev3 2025-03-28 13:39:07 -07:00
Daan
f46c1d2624 update readme 2025-03-28 13:28:10 -07:00
Daan
b843fead22 update mimalloc-redirect to v1.3.3; fix issue #1049 2025-03-28 13:11:37 -07:00
Daan
1052c30f03 fix parenthesis in #if condition 2025-03-28 13:09:24 -07:00
Daan
eb992b1d19
Merge pull request #1050 from vfazio/vfazio-mi_yield_atomic-armeb
atomic: fix mi_atomic_yield for big-endian arm32
2025-03-28 13:07:25 -07:00
Vincent Fazio
23fbee7ec6 atomic: fix mi_atomic_yield for big-endian arm32
Previously, `mi_atomic_yield` would not be defined on ARM32 big-endian
architectures if they were pre-ARMv7.

Rework the #ifdef guard to be more readable and collapse the ARM guards
so both little and big endian are handled via the same mechanism.

Now, ARMv7+ will utilize `yield` while older targets will use `nop`
regardless of endianness.

Signed-off-by: Vincent Fazio <vfazio@gmail.com>
2025-03-28 08:04:07 -05:00
daanx
d3a0bf320f Merge branch 'dev3' of https://github.com/microsoft/mimalloc into dev3 2025-03-26 17:28:27 -07:00
Daan
8da1c1b430 Merge branch 'dev' into dev3 2025-03-25 16:06:25 -07:00
Daan
632eab958b fix for atomic_yield on arm 32-bit, issue #1046 2025-03-25 16:02:29 -07:00
Daan
881d5e3c06
Merge pull request #1047 from ognevny/patch-1
cmake: don't change properties of import lib on Windows/MinGW
2025-03-25 15:43:16 -07:00
Daan
246b3bc120
Merge pull request #1045 from SquallATF/mingw-fix
remove the `lib` prefix when enabling mimalloc-redirect for mingw
2025-03-25 15:42:53 -07:00