Commit graph

100 commits

Author SHA1 Message Date
daanx
cfacbacaba fix zero initialization in mi_arena_meta_zalloc, issue #750 2023-05-19 21:18:40 -07:00
daanx
7563ab97ed fix alignment in meta_zalloc; issue #749 2023-05-19 21:15:03 -07:00
daanx
4a85f32f8e add libc.c source file 2023-05-19 10:24:39 -07:00
daanx
b66e3214d8 be more strict on initially_zero for arena allocation 2023-04-24 09:08:12 -07:00
daanx
632edf9996 rename was_zero/committed to initially_zero/committed 2023-04-24 09:03:43 -07:00
daanx
7f93bf02c9 be explicit about memory tracking in os.c 2023-04-23 16:40:01 -07:00
daanx
d4fe700089 remove spurious track_mem_defined 2023-04-23 13:13:29 -07:00
daanx
a59ae585c7 remove allow_purge option 2023-04-23 13:04:50 -07:00
daanx
a636d88d99 remove unused local 2023-04-22 21:52:49 -07:00
daanx
0e1670a4fb refactor arena code 2023-04-22 21:32:25 -07:00
daanx
4dcd611ec4 simplifying arena code 2023-04-22 18:47:19 -07:00
daanx
d81cc76bbc simplifying arena code 2023-04-22 18:44:00 -07:00
daanx
bdead26c77 improve static alloc precision 2023-04-22 17:26:51 -07:00
daanx
b845be241a wip: use memid for OS allocation 2023-04-18 16:38:47 -07:00
daanx
63ddc31d3f fix 32-bit compile warnings 2023-04-17 12:05:33 -07:00
daanx
a655c28b66 cleanup 2023-04-16 12:29:21 -07:00
daanx
d48b988c40 clean up os api 2023-04-16 11:21:45 -07:00
daanx
0fc4de1440 use rich memid's to simplify the internal API's and invariants 2023-04-15 21:31:17 -07:00
daanx
0174d19af3 increase thread data cache to 16 2023-04-15 19:49:14 -07:00
daanx
48d0d0da9b fix thread data cache to use pure os alloc 2023-04-13 15:27:20 -07:00
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
eb62caeda0 allow per page purging instead of reset 2023-04-08 17:37:58 -07: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
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
d01017ffda extend primitive api with is_zero parameters 2023-04-04 16:32:39 -07:00
daanx
a2e1d2b893 add segment map to track valid pointers 2023-04-04 16:00:17 -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
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
Daan Leijen
cc4ed36c7e prepare for new release 2023-04-03 12:30:18 -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
6eee9e4be2 add option eager_reserve 2023-03-30 16:20:11 -07:00
Daan Leijen
176b6e6aa0 add mi_arena_is_os_allocated 2023-03-28 09:59:41 -07:00
Daan Leijen
560e32b2e1 update comments 2023-03-28 09:14:17 -07:00
Daan Leijen
f58357548c restructure header files 2023-03-20 10:37:39 -07: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
711aad7a75 refactor arena allocation 2022-11-07 11:13:29 -08:00
daan
6a80fa3ac1 initial progress on removing alignment limit 2022-11-05 14:46:52 -07:00
daan
ad1da7cfc8 fix warnings 2022-11-01 16:29:10 -07:00
daan
e6bd41ba3f update arena_id api 2022-11-01 16:26:17 -07:00
daan
0a691ca68e fix off by one in arena id 2022-11-01 14:05:04 -07:00