daan
60790e9013
remove accidental define
2021-12-16 15:35:53 -08:00
daan
7f7ae1a749
Merge branch 'dev' into dev-slice
2021-12-16 15:35:04 -08:00
daan
5bbb2ff416
reenable the use of sbrk on wasm as it seems more stable than direct memory_grow
2021-12-16 15:34:52 -08:00
daan
8d9336dfa6
Merge branch 'dev' into dev-slice
2021-12-16 15:11:58 -08:00
daan
27e24e619b
use wasm_memory_grow instead of sbrk on wasm
2021-12-16 15:11:47 -08:00
daan
b0a866685d
improve sbrk/wasm_memory_grow implementation
2021-12-16 14:54:10 -08:00
daan
2af1db7f3a
Merge branch 'dev' into dev-slice
2021-12-15 19:29:04 -08:00
daan
55ccc94707
wip: fix zero init for sbrk; add lock around sbrk
2021-12-15 19:28:34 -08:00
Daan
8612d1228a
wip: initial fix for race condition on sbrk/wasm_memory_grow; issue #497
2021-12-15 18:04:02 -08:00
daan
67e8df6a5c
Merge branch 'dev' into dev-slice
2021-11-24 12:55:07 -08:00
daan
0be71a2cac
fix prefix
2021-11-24 12:54:54 -08:00
daan
9f1b25e07d
Merge branch 'dev' into dev-slice
2021-11-15 10:10:58 -08:00
daan
09c658dd40
try to allocate within our hint space (partially addresses issue #360 )
2021-11-15 10:10:47 -08:00
Daan
5a05fd446a
fix compilation on macos
2021-11-14 14:38:24 -08:00
daan
a4ea2205ba
merge from dev
2021-11-14 11:25:51 -08:00
daan
4b0cda2012
take overcommit into account for eager commit delay
2021-11-14 11:23:11 -08:00
daan
83ffd92b2b
merge from dev
2021-11-13 15:16:23 -08:00
daan
09e59e0610
use size_t instead of uintptr_t where appropiate
2021-11-13 15:13:16 -08:00
daan
721486c82b
merge from dev
2021-11-13 14:52:11 -08:00
daan
28896e5b19
prefix UNUSED,KiB,MiB,GiB; add mi_threadid_t type; add mi_ssize_t
2021-11-13 14:46:03 -08:00
daan
ba6b4bf622
merge from dev
2021-11-10 16:33:42 -08:00
Daan
f72e5688f5
remove assign in while condition
2021-11-10 11:58:04 -08:00
Daan
fd61997cef
improve aligned support on BSD and MAP_ALIGN systems
2021-11-10 11:26:36 -08:00
Daan
89abbe75d8
improve aligned support on BSD and MAP_ALIGN systems
2021-11-10 11:23:11 -08:00
Daan
8c9ccea2f5
fix huge page madvise in case mmap failed
2021-11-10 10:46:06 -08:00
Daan
a4e7ff8608
Merge branch 'dev' into dev-slice
2021-11-06 14:19:26 -07:00
Daan
e96614961f
fix printf format type mismatches (issue #486 )
2021-11-06 14:19:14 -07:00
Daan
db223e4adb
merge from dev
2021-10-27 18:09:16 -07:00
Daan
5fd77aa198
refactor os_overcommit detection
2021-10-27 17:39:11 -07:00
Daan
0335d32766
Merge branch 'dev' of https://github.com/microsoft/mimalloc into dev
2021-10-27 17:25:09 -07:00
Daan
13b30bf2dd
Merge branch 'dev' into overcommit_if_the_system_approves
2021-10-27 17:12:18 -07:00
Daan
6ccf7e87c0
minor edits
2021-10-27 17:08:00 -07:00
David Carlier
00edd9201b
proposal to not overcommit page unconditionally on Linux and FreeBSD,
...
respecting userland settings.
2021-10-24 20:57:58 +01:00
David Carlier
2d2d9af5c6
while at it, doing dragonflybsd too
2021-10-24 11:37:20 +01:00
David Carlier
fc7777ee8c
NUMA base detection on FreeBSD.
2021-10-22 10:11:20 +01:00
Daan
725fe2ac7d
Merge branch 'dev' into dev-slice
2021-10-21 16:17:31 -07:00
David CARLIER
b5b52b8879
Haiku build update, since the beta3 few more posix functions are available e.g. madvise
2021-10-20 18:33:12 +00:00
Daan
35b928b08f
use MADV_DONTNEED instead of mmap fixedfor simplification and possibly better performance on Linux
2021-10-19 13:18:54 -07:00
Daan
bb00a5a32e
remove MADV_FREE_REUSABLE from mi_os_reset as it needs MADV_FREE_REUSE to reuse the memory again.
2021-10-19 13:11:11 -07:00
Daan
aeb73b0cd4
merge from dev
2021-10-19 12:55:10 -07:00
Daan
75987e4590
Merge pull request #410 from jserv/enforce-binary-prefix
...
Distinguish SI and Binary Prefixes
2021-10-19 12:28:33 -07:00
Daan
adeef8d403
formatting
2021-10-19 10:31:49 -07:00
Daan
4b52ce4095
Merge pull request #450 from bmalrat/FixStatOnWindowsRealloc
...
Fixed stats in mi_os_mem_alloc_aligned on windows when re-allocate
2021-10-19 10:29:16 -07:00
Daan
a4078df9d5
Merge branch 'dev' into dev-slice
2021-10-19 10:17:53 -07:00
Daan
1917fbd847
Merge pull request #467 from tiran/strict_prototypes
...
Fix strict function prototype warnings
2021-10-19 09:35:40 -07:00
Christian Heimes
7c73e3996d
Fix strict function prototype warnings
...
Fix warning ``warning: function declaration isn’t a prototype`` when
building mimalloc with ``-Wstrict-prototypes`` flag. In C argumentless
functions should be declared as ``func(void)``.
Reproducer:
```shell
$ cmake ../.. -DCMAKE_C_FLAGS="-Wstrict-prototypes"
$ make VERBOSE=1
```
Co-authored-by: Sam Gross <colesbury@gmail.com>
Co-authored-by: Neil Schemenauer <nas@arctrix.com>
Signed-off-by: Christian Heimes <christian@python.org>
2021-10-19 10:48:26 +02:00
Daan Leijen
6ef15943cc
fix comments
2021-10-18 16:59:19 -07:00
Daan Leijen
8d2a21eb78
Merge branch 'dev' into dev-slice
2021-10-18 16:46:18 -07:00
Daan Leijen
bd8e3fd8e1
increase robustness of primitive windows allocation by always using a fallback to VirtualAlloc
2021-10-18 16:46:06 -07:00
Daan Leijen
d7ac4478a8
Merge branch 'dev' into dev-slice
2021-10-01 15:05:41 -07:00