Daan Leijen
dcae918b84
always do ASLR in secure mode even in debug mode (issue #289 )
2021-02-01 09:49:12 -08:00
unknown
d1d06b67eb
fix type warning (issue #337 )
2020-12-10 12:13:06 -08:00
unknown
f37a3db37c
cleanup madv_resuable
2020-12-10 11:51:58 -08:00
David Carlier
1deea03bf1
On Darwin, using MADV_FREE_REUSABLE/MADV_FREE_REUSE.
...
The former to notify the pages are available for other processes,
the latter is needed for proper counting in case those pages where
tagged as reusable previously otherwise is a no-op, all for better
RSS reporting for task_info apps.
2020-10-31 22:22:04 +00:00
daan
30b993ecf3
consolidate bit scan operations
2020-09-08 09:27:57 -07:00
daan
c7272afa9a
add mi_reserve_os_memory/mi_manage_os_memory; allow arena allocations to cross multiple bitmap fields
2020-09-07 21:34:34 -07:00
daan
1b571aea06
remove unused local warning
2020-09-05 22:03:47 -07:00
daan
f09549c98f
use main stats for thread count
2020-09-05 18:00:36 -07:00
daan
1ce2e4cb05
use main stats for os statistics
2020-09-05 17:44:15 -07:00
daan
50de0d2358
fix C++ compilation with new atomics
2020-09-05 09:17:42 -07:00
daan
2594b37c56
fix build warning on C++ template deduction on Linux
2020-09-05 08:36:34 -07:00
daan
032eb2a75a
use pragma warning only on msvc (issue #291 )
2020-09-04 13:06:18 -07:00
daan
900c97664a
merge from dev-atomic
2020-09-03 09:47:01 -07:00
daan
b4825372ab
small compilation warning fixes (extra semicolon etc)
2020-08-29 19:30:38 -07:00
daan
47572aceca
improved NUMA node detection on Windows (for AMD Ryzen), issue #282
2020-07-29 14:36:21 -07:00
daan
ef8e5d18a6
replace atomics with C11/C++ atomics with explicit memory order; passes tsan. Issue #130
2020-07-26 18:01:33 -07:00
daan
28014ee2bc
fix atomic access for MADV_FREE in os_reset
2020-07-26 00:16:17 -07:00
daan
09ade02429
bring inline with C11 atomics; no volatile and cas order of expected/desired
2020-07-25 22:52:27 -07:00
David Carlier
2254e20d4c
some apis are available on Illumos which are not available on stock Solaris
...
thus availability evelavated from cflags. discard some sporadically for large pages
support mainly.
2020-07-22 18:26:32 +01:00
Daan
532447fb33
Merge pull request #272 from devnexen/illumos_build
...
illumos support/build fix and large page support
2020-07-21 18:46:28 -07:00
Daan
56b58a8021
Merge pull request #267 from devnexen/haiku_support
...
haiku support.
2020-07-21 18:32:40 -07:00
Daan
457fcbd9d5
Merge pull request #274 from Tyler-IN/agnostic-posix-musl-support
...
Posix / Musl Compatibility
2020-07-20 11:34:58 -07:00
daan
892ec12611
Support Windows Vista and XP for NUMA aware alloction (issue #277 )
2020-07-20 11:10:45 -07:00
David Carlier
0c550d1626
illumos support/build fix and large page support
2020-07-10 03:26:14 +01:00
Tyler Young
b9a7f5cfae
fix mman.h ref
2020-07-09 10:58:47 -04:00
David Carlier
7e48eb033c
haiku support.
...
TLS unsupported thus disabled.
2020-06-28 13:53:45 +00:00
daan
4ecce78d66
Merge branch 'master' into dev
2020-06-17 19:28:15 -07:00
Wanja Vogel
d5475a58a1
fix: avoid warning
...
warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2).
2020-06-10 07:47:50 +02:00
Daan
0ed478089e
Merge pull request #242 from devnexen/ios_build_fix
...
IOS build fix, large pages unsupported.
2020-05-19 10:21:32 -07:00
daan
a7d2bc8ad6
edit warning messages to be more consistent
2020-05-19 10:16:28 -07:00
David Carlier
0ea4e3f279
IOS build fix, large pages unsupported.
2020-05-07 20:09:16 +01:00
Nicolas
f40aaad876
Fix typo in comment
...
Usuelly->Usually
2020-04-24 23:20:28 -03:00
daan
093db6af24
possible fix for memory instability on Win7 ( #230 )
2020-04-20 09:33:19 -07:00
daan
34d3b8c47f
add version check for mingw compilation and add FlsAlloc definitions if required
2020-04-06 11:25:25 -07:00
daan
0a3e5bb699
further fixes to compile on mingw without warnings (issue #217 )
2020-04-06 10:56:53 -07:00
daan
0f3bd05fd5
fix mingw compilation for numa awareness (issue #217 )
2020-04-06 10:03:30 -07:00
David Carlier
c0b06949cb
32 bits build fix proposal.
2020-03-20 17:38:14 +00:00
daan
72f758c433
fix issue #210 where multiple static instances of mimalloc in DLL's compete for the same virtual memory area
2020-03-06 16:43:39 -08:00
daan
7d3d37e4dd
Merge branch 'dev' into dev-exp
2020-02-02 15:54:41 -08:00
daan
865965b8c0
fix warnings under clang-cl
2020-02-02 15:43:13 -08:00
daan
4a5f3592c0
fix build warning on FreeBSD
2020-02-02 09:25:39 -08:00
daan
8422ab125d
improve messages; fix reset size calculation on large pages
2020-01-31 17:28:26 -08:00
daan
b31bc52618
add cache alignment directives for contended variables
2020-01-24 19:02:13 -08:00
daan
e3b16fe4ef
reduce type casts in atomic operations
2020-01-22 19:44:54 -08:00
daan
dc58388968
Add ability to register custom error function called on various error conditions; including ENOMEM
2020-01-17 19:59:55 -08:00
daan
5f61a9e896
add mprotect error when the mmap limit might be reached in secure mode (see issue #77 )
2020-01-09 17:52:28 -08:00
daan
d8d69c2c94
disable MAP_NORESERVE on huge pages
2020-01-05 22:07:16 -08:00
daan
384808e340
Merge branch 'dev-random' into dev
2019-12-28 16:19:45 -08:00
daan
6f0b35d513
merge from master
2019-12-24 10:44:49 -08:00
daan
e05a1edc03
fix large OS page size on Linux (issue #184 , due to fix for #179 )
2019-12-24 10:32:44 -08:00