Commit Graph

  • 4bf748bc4b allow decommit by default daan 2019-10-31 12:42:23 -07:00
  • 0708bb098d add allow_decommit option daan 2019-10-31 10:59:50 -07:00
  • 55e5a553d1 respect large pages for arena allocation daan 2019-10-31 10:59:40 -07:00
  • 9afbbb5570 fixed memory arena allocation for huge pages daan 2019-10-31 09:10:58 -07:00
  • 5da853d8c2 initial experiment with fixed memory arena and sliced segments daan 2019-10-31 00:40:41 -07:00
  • 6bb8fd1896 fix secure mode daan 2019-10-30 15:36:13 -07:00
  • c6274b37f9 Merge branch 'dev' into dev-win-exp daan 2019-10-30 15:22:56 -07:00
  • 2457286df8 fix assertion in debug secure mode daan 2019-10-30 15:22:40 -07:00
  • a5cf72e97e merge from dev daan 2019-10-30 15:19:34 -07:00
  • 07c5fbb89e merge from dev daan 2019-10-30 14:55:22 -07:00
  • 17ebae293d protect against double-free in multi-threaded free list daan 2019-10-30 14:53:21 -07:00
  • 3d752a7460 fix reset error on windows when disabling eager commit option daan 2019-10-30 14:32:28 -07:00
  • c35a94a2bd enable double free and heap corruption detection in debug mode daan 2019-10-28 15:54:33 -07:00
  • 6a36f31069 Merge branch 'dev' into dev-win daan 2019-10-28 14:12:37 -07:00
  • 8726171a89 use more conservative retire strategy daan 2019-10-28 14:12:06 -07:00
  • 91eee46ff0 fix statistics display daan 2019-10-28 13:43:42 -07:00
  • c3d9986850 fix statistics accounting of huge pages daan 2019-10-28 13:14:14 -07:00
  • 4d4b6a96f9 merge from dev-win daan 2019-10-28 12:33:01 -07:00
  • c9a8d607d2 merge from dev daan 2019-10-28 12:31:08 -07:00
  • ec72ab214e remove double_free call daan 2019-10-28 12:27:32 -07:00
  • 63a4722b81 improve windows warning message daan 2019-10-28 12:26:57 -07:00
  • e386e21e7f fix double free check in secure = 4 mode; inline _mi_ptr_cookie daan 2019-10-19 08:34:18 -07:00
  • cdc7ab6029 stronger secure mode when defining MI_SECURE=4: checks for double free, corrupted free list, and invalid pointer frees. Performance is impacted but not too much -- more perf testing is needed daan 2019-10-18 18:11:04 -07:00
  • e8bc3cd56a merge from dev daan 2019-10-17 18:24:35 -07:00
  • 193db56e4a fix warnings at high warning level in msvc daan 2019-10-17 16:56:57 -07:00
  • 0c26d192aa update page_flags to have more portable definition daan 2019-10-17 16:48:16 -07:00
  • c94140ef45 ensure randomized huge page start address in 1GiB aligned daan 2019-10-17 12:35:35 -07:00
  • 764e91b18f increase delayed output buffer to 32k daan 2019-10-17 12:14:15 -07:00
  • 458e69ce0c update redirection modules daan 2019-10-17 12:13:45 -07:00
  • 481128cc3a use uint8_t bit fields, and improve portability of page_flags type daan 2019-10-17 12:07:26 -07:00
  • 7f38c7ad59 Merge pull request #160 from dscho/git-for-windows-fixes Daan 2019-10-17 11:51:39 -07:00
  • f8724c0428 Suppress warning about unnamed struct Johannes Schindelin 2019-10-16 23:40:25 +02:00
  • 3e15abcd41 Avoid compiler warning when casting the result of GetProcAddress() Johannes Schindelin 2019-10-16 22:43:57 +02:00
  • eb2b11e8c1 Repeat mi_decl_allocator in functions' definitions Johannes Schindelin 2019-10-17 17:02:51 +02:00
  • 48eee2fd19 Use unsigned for bit-field variables Johannes Schindelin 2019-10-17 17:01:56 +02:00
  • 7b571bb85b pick better umul_overflow variant based on size_t size daan 2019-10-17 09:52:10 -07:00
  • aeadf0be92 pick better umul_overflow variant based on intptr size daan 2019-10-17 09:47:12 -07:00
  • 52d9d681c9 disallow regular allocation from the huge reserved area daan 2019-10-17 09:24:57 -07:00
  • 32506f6f32 remove old windows overriding method daan 2019-10-17 09:22:23 -07:00
  • ff2e0da88b update test to match malloc with free daan 2019-10-17 09:21:20 -07:00
  • 50da35a43b updated redirection module on windows daan 2019-10-17 09:20:57 -07:00
  • b56be8d4af merge from dev daan 2019-10-12 11:17:05 -07:00
  • 4d08347168 Merge branch 'master' into dev daan 2019-10-12 10:42:54 -07:00
  • 2c5e2e1a91 update redirection module to add additional checks daan 2019-10-12 10:42:34 -07:00
  • 6910800659 cleanup delayed output daan 2019-10-12 10:42:04 -07:00
  • 37a86914af add delayed output buffer Daan Leijen 2019-10-11 17:03:09 -07:00
  • bcbd33c980 add delayed output buffer Daan Leijen 2019-10-11 17:03:09 -07:00
  • 234ac0b043 Merge branch 'master' of https://github.com/microsoft/mimalloc Daan Leijen 2019-10-07 12:13:51 -07:00
  • 1006fb0228 update mimalloc build version Daan Leijen 2019-10-07 12:13:40 -07:00
  • 5b1620b19e Update readme.md Daan 2019-10-07 12:08:44 -07:00
  • 4431aff9e2 bump to version 1.1 Daan Leijen 2019-10-07 09:54:23 -07:00
  • d32cd48b5b Merge branch 'dev' into dev-win daan 2019-09-17 18:07:50 -07:00
  • da6640914d remove incorrect region_count comment daan 2019-09-17 18:07:32 -07:00
  • afe5a836c1 merge from dev daan 2019-09-17 17:49:56 -07:00
  • beb7a35c99 remove thread init/done verbose messages daan 2019-09-17 17:35:20 -07:00
  • 1c802f900e make secure a build option only daan 2019-09-17 17:31:42 -07:00
  • 9b2d7e5aa6 fix error code on mprotect failure daan 2019-09-17 17:23:20 -07:00
  • a56f0f73d3 set SONAME and use symbolic link at install (issue #9 and #58) daan 2019-09-15 20:26:30 -07:00
  • cbe863fae3 put new-delete overrides in separate header file daan 2019-09-15 19:19:00 -07:00
  • 79a6dabd8e ensure large page privileges are acquired on windows when calling reserve_huge_os_pages daan 2019-09-14 15:23:28 -07:00
  • 078016454e roll back commit 7d65237 and start region search from last idx per thread daan 2019-09-13 12:16:40 -07:00
  • f91c8f66b8 fix definition of mi_recalloc_tp daan 2019-09-11 20:49:18 -07:00
  • 94d00494ba update documentation daan 2019-09-11 20:48:41 -07:00
  • f2cfb3bde9 limit aligned allocation to power-of-two alignment daan 2019-09-11 17:49:28 -07:00
  • 6efaa4fb8f roll back commit 130c0ba9 on alignment >= size as it breaks assertions in tensorflow daan 2019-09-11 15:48:44 -07:00
  • 3a4db49023 refine mi_os_good_alloc_size and use it for huge pages (to ensure realloc is bounded as in #153 Daan Leijen 2019-09-10 13:26:51 -07:00
  • 9356a8b29a round huge page sizes into 12.5% increments (issue #153) Daan Leijen 2019-09-10 07:54:31 -07:00
  • 5601155bf7 update vs2019 projects daan 2019-09-09 12:56:15 -07:00
  • 47035f4f54 fix tests for aligned allocation daan 2019-09-09 08:21:35 -07:00
  • cba2dabe35 use mi_is_power_of_two when possible (pr #118) daan 2019-09-09 08:12:50 -07:00
  • 6b77849620 fix volatile declaration on function daan 2019-09-09 08:07:35 -07:00
  • 5474b6bb09 Merge branch 'master' into dev daan 2019-09-09 08:06:35 -07:00
  • 6bb64f9988 Merge pull request #148 from pitrou/tls-local-dynamic Daan 2019-09-09 08:05:22 -07:00
  • 4c0c41303e add recursion guard to deferred callback daan 2019-09-09 08:02:41 -07:00
  • 6eb2d9b72c fix mi_collect being called with empty heap (issue #150) daan 2019-09-09 07:54:36 -07:00
  • a11e7e8d1c add alignment check to aligned_alloc for C11 compliance daan 2019-09-07 12:02:22 -07:00
  • 130c0ba9bf don't align to sizes greater than than the allocation size daan 2019-09-07 12:01:54 -07:00
  • 91a73e3ccb don't allocate more than PTRDIFF_MAX on aligned allocations daan 2019-09-07 11:52:21 -07:00
  • db520616db fix volatile declaration on function pointer daan 2019-09-07 09:18:29 -07:00
  • 325a47f91f improve page_free_extend performance slightly; do not maintain expensive statistics in release mode daan 2019-09-06 16:48:48 -07:00
  • 5b575bffb5 fix c++ compilation; make default output non-atomic daan 2019-09-06 11:51:22 -07:00
  • 470aeb681c ensure addresses of large aligned allocations are randomized daan 2019-09-06 09:19:26 -07:00
  • 702ab2c55e changed strategy to reduce contention for region search and vs2019 project fix Jakub Szymanski 2019-09-05 08:13:52 -07:00
  • c448afef89 add wrap-around for large aligned allocations on Windows and Linux daan 2019-09-04 21:03:00 -07:00
  • f4ed688538 better alignment for large and huge pages inside a segment daan 2019-09-04 18:42:37 -07:00
  • f99f8444ec reserve huge pages returns actual number of pages reserved daan 2019-09-04 12:14:59 -07:00
  • eaa49e11ef reserve huge pages returns actual number of pages reserved daan 2019-09-04 12:14:59 -07:00
  • 884b92167f add later thread-done invokation; add mi_is_redirected call daan 2019-09-04 12:00:41 -07:00
  • 607e68a6cb Fix #147: provide CMake option for alternate TLS mechanism Antoine Pitrou 2019-09-04 12:02:16 +02:00
  • aa3c2a1732 fix for incorrect region count daan 2019-09-03 19:33:38 -07:00
  • c10388d2f8 read regions count on every loop iteration daan 2019-09-03 18:25:01 -07:00
  • 44b047f98d fix regions_count tracking in case of concurrent region allocations daan 2019-09-03 18:20:56 -07:00
  • 7a816332ca add back zero initialized re-allocation daan 2019-09-03 10:57:39 -07:00
  • 9f50b4fbdc pass page to block_zero_init and extend to block_size daan 2019-09-03 10:11:24 -07:00
  • 9eeae57451 fix commit zero on windows daan 2019-09-02 14:53:22 -07:00
  • 8d4855db9b support zero-initialized memory detection daan 2019-09-02 13:16:52 -07:00
  • d63d53d63e Update readme.md Daan 2019-09-02 10:48:49 -07:00
  • 28bda6e259 Merge branch 'master' into dev daan 2019-09-02 10:24:23 -07:00
  • 993685ac76 Update readme.md Daan 2019-09-02 10:22:52 -07:00
  • 7f4335d756 fix type; fix comment daan 2019-09-02 10:18:34 -07:00