2024 Commits

Author SHA1 Message Date
daanx
0ba79d01f6 allow static allocation in arenas for internal metadata 2023-04-13 13:19:39 -07:00
daanx
c90a2bbd0a make memid's abstract for safety 2023-04-13 12:17:52 -07:00
daanx
290443aee6 fix assertion/invariant 2023-04-13 11:41:08 -07:00
Gábor Horváth
a94b31d804
Fix option name for ETW tracking 2023-04-12 16:59:49 -07:00
daanx
eb62caeda0 allow per page purging instead of reset 2023-04-08 17:37:58 -07:00
David CARLIER
bcbcc343ec fix build on freebsd.
close #722
2023-04-07 08:59:43 +01:00
daanx
6bd591d675 fix tsan errors 2023-04-05 11:57:32 -07:00
daanx
cdefd5b69c fix stats for purging 2023-04-05 11:11:03 -07:00
daanx
96e9e6f570 clean up option naming 2023-04-05 10:11:54 -07:00
daanx
55df1f3a54 more detailed stats, including purges 2023-04-05 09:48:22 -07:00
daanx
b6a395b5ec reset stats more early for mstress 2023-04-04 19:18:47 -07:00
daanx
8ddf6f96a8 fix purge bug in arenas 2023-04-04 19:03:18 -07:00
daanx
83aa635485 implement arena destroy on program exit 2023-04-04 18:44:08 -07:00
daanx
4c4f2f4084 clean up arena function names 2023-04-04 18:13:35 -07:00
daanx
cb0369452d use exponetially sized arenas 2023-04-04 17:54:33 -07:00
daanx
8d56c155f9 set page_free to 0 by default 2023-04-04 16:58:58 -07:00
daanx
d01017ffda extend primitive api with is_zero parameters 2023-04-04 16:32:39 -07:00
daanx
db74fc0c98 add abandoned reader barrier 2023-04-04 16:04:17 -07:00
daanx
a2e1d2b893 add segment map to track valid pointers 2023-04-04 16:00:17 -07:00
daanx
461df1e878 implement arena exclusive heap allocation for dev 2023-04-04 15:40:43 -07:00
daanx
4fc597d4f4 more tight purge delay 2023-04-04 15:05:29 -07:00
daanx
77766e20a6 use only arena's instead of regions 2023-04-04 14:58:06 -07:00
daanx
1d231be758 clarify needs_recommit 2023-04-04 13:05:48 -07:00
daanx
5c39fe7246 decommit returns whether re-commit is needed 2023-04-04 12:57:18 -07:00
daanx
449aad0635 wip: purgeable arenas; update option names and improve arena reservation 2023-04-04 12:15:57 -07:00
daanx
a5b47fe17b Merge branch 'dev' into dev-reset 2023-04-03 12:46:00 -07:00
daanx
92556e0e62 bump version for further development 2023-04-03 12:45:04 -07:00
Daan Leijen
cc4ed36c7e prepare for new release v1.8.1 2023-04-03 12:30:18 -07:00
Daan Leijen
05e7931b94 prevent pedantic warning 2023-04-01 11:28:34 -07:00
Daan Leijen
595add5e3d wip: initial work on purgable arenas 2023-03-31 20:51:35 -07:00
Daan Leijen
7cf60deb12 wip: initial delayed purging of arenas 2023-03-31 14:07:59 -07:00
Daan Leijen
bd66d54765 Merge branch 'dev' into dev-reset 2023-03-31 10:34:27 -07:00
Daan Leijen
3208dff17a remove extraneous forward declarations 2023-03-31 10:33:36 -07:00
Daan Leijen
1a57a53b75 Merge branch 'dev' into dev-reset 2023-03-31 10:31:43 -07:00
Daan Leijen
d3ec7f378e fix compile on ppc64IE and s390x arches (issue #717) 2023-03-31 10:25:32 -07:00
Daan Leijen
6eee9e4be2 add option eager_reserve 2023-03-30 16:20:11 -07:00
Daan Leijen
8607c4a5df fix compile without syscall (pr #714 by asuka-mio) 2023-03-30 09:24:06 -07:00
Daan Leijen
47d8cd916e fix compile without MADV_FREE (pr #715 by elbaro) 2023-03-30 09:21:07 -07:00
Daan Leijen
f08d9d489c bump version for further development 2023-03-30 09:19:35 -07:00
Daan Leijen
6515829c84 fix readme order 2023-03-29 16:43:03 -07:00
Daan Leijen
20126e1c6c fix links in readme 2023-03-29 16:40:04 -07:00
Daan Leijen
62949f55b3 increment doxy file version number v1.8.0 2023-03-29 16:29:59 -07:00
Daan Leijen
06b94fc5e6 remove redundant code (pr #674 by @rganesan) 2023-03-29 16:19:07 -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 Leijen
f806eb8498 remove redundant OR in mmap flags (pr #675) 2023-03-29 16:15:20 -07:00
Daan Leijen
dd7b99d477 apply some spelling fixes from PR #710 2023-03-29 16:10:01 -07:00
Daan
c2a2533fba fix haiku compilation (pr #679) 2023-03-29 16:02:46 -07:00
Daan
2141e414a7
Merge pull request #708 from devnexen/new_placement_tests
c++ override test new placement operator
2023-03-29 15:57:53 -07:00
Daan Leijen
61a32e62b8 support cygwin compilation (pr #712) 2023-03-29 15:56:31 -07:00
Daan Leijen
f20d22a3e4 fix arm compilation (PR 694) 2023-03-29 15:53:05 -07:00
Daan Leijen
1cb0193ff1 fix hex formatting of errors 2023-03-29 13:00:35 -07:00
Daan
5bc724d18f fix warnings on macOS 2023-03-29 12:39:34 -07:00
Daan Leijen
068d1d8842 increase timeout in pipeline for linux for tsan run 2023-03-29 12:27:22 -07:00
Daan Leijen
0ca31d2db1 fix pipeline for tsan 2023-03-29 12:20:29 -07:00
Daan Leijen
8e6a475386 add ubsan and tsan to pipeline 2023-03-29 12:13:59 -07:00
Daan Leijen
651ff2c68b fix cmake for windows 2023-03-29 11:55:00 -07:00
Daan Leijen
e1e1e25d21 add ASAN to pipeline 2023-03-29 11:52:46 -07:00
Daan Leijen
2440e60d95 copy static.o to the cmake directory (issue #706) 2023-03-29 11:48:01 -07:00
Daan Leijen
8ecbc29a02 prepare readme for release 2023-03-29 11:46:56 -07:00
Daan Leijen
79f31b0e8f use syscalls for open/close etc when initializing to avoid recursion when these are intercepted (issue #713) 2023-03-28 16:44:35 -07:00
Daan Leijen
176b6e6aa0 add mi_arena_is_os_allocated 2023-03-28 09:59:41 -07:00
Daan Leijen
9792b6364d move more prototypes in internal.h for safety 2023-03-28 09:25:32 -07:00
Daan Leijen
560e32b2e1 update comments 2023-03-28 09:14:17 -07:00
Daan Leijen
a21ddd03fe add verbose message if thread sanitizer is enabled 2023-03-23 11:21:45 -07:00
Daan Leijen
c9dcca6a64 update comments 2023-03-22 10:31:04 -07:00
Daan
d976fbe08b remove spurious include 2023-03-22 09:56:40 -07:00
Daan
96b55bd0bb potential fix for macOS issue #697 2023-03-22 09:48:40 -07:00
Daan Leijen
70fefec837 fix huge OS page count when a timeout happens (issue #711) 2023-03-21 19:42:25 -07:00
Daan Leijen
1ded6e2dec increase env limit to 10000 entries (issue #685) 2023-03-20 14:30:38 -07:00
Daan
06f0ba232e prevent reentrancy on thread_done (issue #699) 2023-03-20 14:23:52 -07:00
Daan
b893311365 Merge branch 'dev' of https://github.com/microsoft/mimalloc into dev 2023-03-20 14:23:00 -07:00
Daan Leijen
c92e9e7bf7 add comment that thread id's should not be zero, issue #698 2023-03-20 14:01:09 -07:00
Daan Leijen
0b4c3da2e9 make process init race free (issue #701) 2023-03-20 13:55:39 -07:00
Daan
01b460fedb add std::string test for macos 2023-03-20 13:24:11 -07:00
Daan Leijen
30df80b05a proper prototype 2023-03-20 11:50:05 -07:00
Daan Leijen
54ad5e76fd fix warnings for issues #709 2023-03-20 11:43:31 -07:00
Daan Leijen
65402836ae comments 2023-03-20 11:30:52 -07:00
Daan Leijen
287010578d update ide project files 2023-03-20 11:20:30 -07:00
Daan Leijen
2f9b2f51b9 update 2022 ide 2023-03-20 11:11:01 -07:00
Daan Leijen
e24e1125ee bump version to 1.8.0 2023-03-20 11:03:50 -07:00
Daan Leijen
0509d11ac5 more comments 2023-03-20 11:02:16 -07:00
Daan Leijen
ec5f4904b0 more comments 2023-03-20 11:01:40 -07:00
Daan Leijen
c0c762611c add prim/osx directory 2023-03-20 10:49:56 -07:00
Daan Leijen
f58357548c restructure header files 2023-03-20 10:37:39 -07:00
Daan Leijen
6ae6c42700 simplify primitives API 2023-03-20 10:23:00 -07:00
Daan Leijen
85a2bb5c60 update process info primitive api 2023-03-20 10:22:45 -07:00
David Carlier
cbccbbe9a4 c++ override test new placement operator 2023-03-18 11:11:49 +00:00
Daan Leijen
17a20f280b dont track ETW by default 2023-03-16 20:16:31 -07:00
Daan Leijen
3ebcc0bac4 fix syntax in cmakelists 2023-03-16 20:13:21 -07:00
Daan Leijen
63f88cb43d rename 2023-03-16 20:10:46 -07:00
Daan Leijen
1a99efc671 integrate ETW windows event tracing into mimalloc as another track tool 2023-03-16 20:08:43 -07:00
Xinglong He
072316bd33 add etw support 2023-03-16 17:47:20 -07:00
Daan Leijen
8a1f6c82b2 move prim files in subdirectories 2023-03-16 17:47:00 -07:00
Daan Leijen
2e85af5bb2 Merge branch 'dev' into dev-platform 2023-03-16 17:42:11 -07:00
Daan Leijen
134b23b921 fix asan/valgrind api fill test 2023-03-16 17:42:00 -07:00
Daan
7d834864bb fix macOSX compilation 2023-03-16 11:35:11 -07:00
Daan Leijen
c4c96d2f8d update older vs ide projects 2023-03-15 20:38:10 -07:00
Daan Leijen
e937070cf1 Merge branch 'dev' into dev-platform 2023-03-15 20:33:35 -07:00
Daan Leijen
824fd8a7b1 fix issue #707; rename a local template parameter (destroy) to work around two-phase template resolve in msvc 2019 2023-03-15 20:31:52 -07:00
Daan Leijen
9fb4f2a501 update vs2019 ide 2023-03-15 19:25:18 -07:00