39 Commits

Author SHA1 Message Date
daan e302737830 reserve huge pages returns actual number of pages reserved 2019-09-04 12:23:28 -07:00
daan 23c35f4aba merge from dev 2019-08-25 13:07:07 -07:00
daan b86c851cca put segment cache behind an option and disable by default 2019-08-25 12:35:14 -07:00
daan d3224d0bba Merge branch 'dev' into dev-win 2019-08-23 21:42:32 -07:00
Daan Leijen eb25093b13 fix mi_cdecl for older clang versions 2019-08-21 09:40:57 -07:00
daan a5071eb510 Merge branch 'dev' into dev-win 2019-08-20 07:50:03 -07:00
daan 03d994648a better option interface: option_enable, option_disable, and option_set_enabled 2019-08-20 07:47:50 -07:00
daan 7a2e0df5ea merge from dev 2019-08-20 07:37:46 -07:00
daan d52e4039b6 remove the reset_discards option 2019-08-20 07:06:11 -07:00
daan 79487dbedf add checks for right option order 2019-08-20 06:58:51 -07:00
daan 0e639addb0 add environment option to reserve huge pages upfront 2019-08-19 14:14:50 -07:00
daan 42dedb00ec initial implementation of mi_os_reserve_huge_pages 2019-08-19 11:10:06 -07:00
daan 189ad0f81d small optimizations, use bitwise aligne 2019-07-23 15:00:13 -07:00
Jim Huang b5e26bedb1 Enforce strict include-what-you-use policy
The include-what-you-use (IWYU) policy is beneficial to faster
compilation and fewer recompilations. Many build tools, such as GNU make,
provide a mechanism for automatically figuring out what .h files a .cc
file depends on. These mechanisms typically look at #include lines. When
unnecessary #includes are listed, the build system is more likely to
recompile in cases where it is not necessary.

With the enforcement, header file <include/mimalloc.h> no longer
includes <stdlib.h>.

Reference:
https://github.com/include-what-you-use/include-what-you-use/blob/master/docs/WhyIWYU.md
2019-07-23 14:59:57 -07:00
daan 81a7ae33e7 fix order of options 2019-07-19 09:26:22 -07:00
daan 33aa5d92fa fix to overrides on windows 2019-07-18 21:20:18 -07:00
daan 93c8a5b693 full overriding api supported 2019-07-18 21:12:40 -07:00
daan c228ecefd8 update for new dynamic direction on windows 64-bit 2019-07-18 18:59:32 -07:00
daan f646cc925d add is_in_heap_region function 2019-07-17 15:37:36 -07:00
daan 08e0f14c2a document experimental options 2019-07-15 14:32:54 -07:00
daan 08c873c250 Merge branch 'dev' into dev-exp 2019-07-14 20:35:01 -07:00
daan 461b8aed80 more complete C++ support for compliance and performance 2019-07-14 19:56:33 -07:00
daan 3192ca4682 merge with dev-win 2019-07-09 23:34:17 -07:00
daan 0314373d93 add reset_decommit, reset_discard options; maintain more statistics 2019-07-09 20:24:00 -07:00
daan 129149977d Merge branch 'dev' into dev-exp 2019-07-08 17:45:04 -07:00