Commit graph

  • 56887aeb2f add MI_SECURE_FULL=ON as a cmake option to include double free mitigation daan 2019-11-07 10:59:45 -08:00
  • 9b65388807 fix space leak in secure mode where a non-null free list would be discarded daan 2019-11-07 10:59:19 -08:00
  • 27f1a8b3d2 fix avg display; set secure default to 0` daan 2019-11-07 10:35:30 -08:00
  • 36090dee5c Merge branch 'dev' into dev-exp daan 2019-11-07 10:34:06 -08:00
  • 31d11f64d5 fix secure free list extension where a non-empty initial free list was discarded daan 2019-11-07 10:33:45 -08:00
  • 378716c467 refactor and improve atomic bitmap usage daan 2019-11-07 10:26:52 -08:00
  • b09282bc0d change arena allocator to atomic bitmap as well daan 2019-11-06 22:49:01 -08:00
  • 00e19cad9a refactor region code, split out atomic bitmap daan 2019-11-06 21:37:23 -08:00
  • 2887266063 optimize get numa node for single node systems daan 2019-11-06 14:17:36 -08:00
  • 829fd872f4 initial delay slots daan 2019-11-04 11:48:41 -08:00
  • c3ef23e4f6 Merge branch 'dev-exp' into dev-arena daan 2019-11-04 09:40:25 -08:00
  • 3d0a1e249f remove all floating point types and arithmetic daan 2019-11-04 09:40:10 -08:00
  • 62df2e2df9 merge from dev-exp daan 2019-11-04 08:56:42 -08:00
  • 2749612c5f merge from dev daan 2019-11-04 08:54:53 -08:00
  • c38af8f7c1 merge d1d65fbc: make max error messages configurable daan 2019-11-03 13:25:41 -08:00
  • aece753dce fix output during preloading enabling stderr only after the crt has loaded daan 2019-11-03 12:18:20 -08:00
  • 8afd06b248 use int64 for time (instead of double) daan 2019-11-04 08:44:40 -08:00
  • 2b005addd3 merge from dev-exp daan 2019-11-03 13:37:03 -08:00
  • 9d6a5acb22 fix unix build warnings daan 2019-11-03 13:34:54 -08:00
  • d1d65fbca4 make max error messages configurable daan 2019-11-03 13:25:41 -08:00
  • 520a8dafee divide huge pages more even daan 2019-11-03 13:25:28 -08:00
  • f36ec5d9d8 reserve huge pages incrementally daan 2019-11-03 13:16:07 -08:00
  • 1a6d150687 merge from dev-exp daan 2019-11-03 12:21:22 -08:00
  • e320488791 add numa nodes to stats daan 2019-11-03 12:18:32 -08:00
  • 723fbba259 fix output during preloading enabling stderr only after the crt has loaded daan 2019-11-03 12:18:20 -08:00
  • 5bdcda30b0 merge from dev-exp daan 2019-11-02 20:12:22 -07:00
  • 62cd0237fc fix aligned huge page allocation on windows daan 2019-11-02 17:49:34 -07:00
  • ee323aabac fix vs2017 build daan 2019-11-02 15:56:21 -07:00
  • e0b8ec7f54 merge with dev-exp daan 2019-11-02 11:56:19 -07:00
  • fd9d8c85ae change numa support on linux to use getcpu daan 2019-11-02 11:55:03 -07:00
  • ae092e05a2 Merge branch 'dev-exp' into dev-arena daan 2019-11-02 10:39:27 -07:00
  • 70748ee1ee fix missing semi colon daan 2019-11-02 10:39:09 -07:00
  • b0182b2376 Merge branch 'dev-exp' into dev-arena daan 2019-11-02 10:30:33 -07:00
  • a69016c33e improve and document numa support daan 2019-11-02 10:30:16 -07:00
  • 08c4726043 merge from dev-exp daan 2019-11-01 22:04:20 -07:00
  • 2c12d7f223 optimized numa calls; better Linux support daan 2019-11-01 22:01:52 -07:00
  • 6916e6590f Merge branch 'dev-exp' into dev-arena daan 2019-11-01 20:30:32 -07:00
  • 57dd69265a normalize numa node daan 2019-11-01 20:30:01 -07:00
  • 4be5b14869 merge from dev-exp daan 2019-11-01 20:19:32 -07:00
  • 2d10c78587 fix linux compilation daan 2019-11-01 20:19:00 -07:00
  • 6b26f0cb17 merge from dev-exp (numa support) daan 2019-11-01 20:08:56 -07:00
  • 3fadf4abaf initial numa awareness for regions daan 2019-11-01 20:01:08 -07:00
  • a6499be074 initial numa support for arenas daan 2019-11-01 19:53:07 -07:00
  • eed42445e8 merge from dev-exp daan 2019-10-31 20:40:02 -07:00
  • aaf01620f4 improve allocation of the huge OS page arena daan 2019-10-31 19:39:49 -07:00
  • a74e072a9a set test-stress scale to 20 again daan 2019-10-31 19:00:26 -07:00
  • 62984c0a24 merge from dev-exp daan 2019-10-31 18:44:48 -07:00
  • d36d04b4a6 add arena for huge page management daan 2019-10-31 15:35:10 -07:00
  • bbca1cd8d9 allow decommit by default daan 2019-10-31 12:42:23 -07:00
  • 6695f8ae91 add allow_decommit option daan 2019-10-31 10:59:50 -07:00
  • ed4f60fc7e respect large pages for arena allocation daan 2019-10-31 10:59:40 -07:00
  • 28cb19148c fixed memory arena allocation for huge pages daan 2019-10-31 09:10:58 -07:00
  • c83902fb79
    Updated install location zerodefect 2019-10-31 12:08:33 +00:00
  • f7d2c45af3 initial experiment with fixed memory arena and sliced segments daan 2019-10-31 00:40:41 -07:00
  • c7ec30ae25 fix secure mode daan 2019-10-30 15:36:13 -07:00
  • 93ae3e26b1 Merge branch 'dev' into dev-win-exp daan 2019-10-30 15:22:56 -07:00
  • 8725a88fba fix assertion in debug secure mode daan 2019-10-30 15:22:40 -07:00
  • b73beede34 merge from dev daan 2019-10-30 15:19:34 -07:00
  • b4d90818e9 merge from dev daan 2019-10-30 14:55:22 -07:00
  • 4a4d74927c protect against double-free in multi-threaded free list daan 2019-10-30 14:53:21 -07:00
  • 6cf16b1201 fix reset error on windows when disabling eager commit option daan 2019-10-30 14:32:28 -07:00
  • b052d3b731 enable double free and heap corruption detection in debug mode daan 2019-10-28 15:54:33 -07:00
  • 57b0b578ad Merge branch 'dev' into dev-win daan 2019-10-28 14:12:37 -07:00
  • 87bdfbb9b6 use more conservative retire strategy daan 2019-10-28 14:12:06 -07:00
  • 081e2d1eb6 fix statistics display daan 2019-10-28 13:43:42 -07:00
  • 28d4ec4c5a fix statistics accounting of huge pages daan 2019-10-28 13:14:14 -07:00
  • 9d4f57abf3 merge from dev-win daan 2019-10-28 12:33:01 -07:00
  • 1a36ca3eb9 merge from dev daan 2019-10-28 12:31:08 -07:00
  • ff9f29660b remove double_free call daan 2019-10-28 12:27:32 -07:00
  • 5dfdc092b5 improve windows warning message daan 2019-10-28 12:26:57 -07:00
  • c92a3ec6c3 Expose _mi_heap_is_valid Sam Gross 2019-10-24 15:49:47 -04:00
  • 91b21ca420 Replicate the value of _mi_default_heap in mi_pthread_key and mi_fls_key Sam Gross 2019-10-24 15:30:12 -04:00
  • e04029fb23 Remove duplicated mi_bsr and add bsr64 fastpath Jim Huang 2019-10-20 10:01:13 +08:00
  • 25246070ae fix double free check in secure = 4 mode; inline _mi_ptr_cookie daan 2019-10-19 08:34:18 -07:00
  • 2affdbbd2e 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
  • 4b15e2ed97 merge from dev daan 2019-10-17 18:24:35 -07:00
  • fdfa6ed260 fix warnings at high warning level in msvc daan 2019-10-17 16:56:57 -07:00
  • 5de851a84d update page_flags to have more portable definition daan 2019-10-17 16:48:16 -07:00
  • 93b4281b82 ensure randomized huge page start address in 1GiB aligned daan 2019-10-17 12:35:35 -07:00
  • 454bc67338 increase delayed output buffer to 32k daan 2019-10-17 12:14:15 -07:00
  • 6e94950de3 update redirection modules daan 2019-10-17 12:13:45 -07:00
  • 26c27fbf58 use uint8_t bit fields, and improve portability of page_flags type daan 2019-10-17 12:07:26 -07:00
  • 72d1ab80c3
    Merge pull request #160 from dscho/git-for-windows-fixes Daan 2019-10-17 11:51:39 -07:00
  • 559688ec64 Suppress warning about unnamed struct Johannes Schindelin 2019-10-16 23:40:25 +02:00
  • 0fd0122c0a Avoid compiler warning when casting the result of GetProcAddress() Johannes Schindelin 2019-10-16 22:43:57 +02:00
  • 5bd8ea2e4f Repeat mi_decl_allocator in functions' definitions Johannes Schindelin 2019-10-17 17:02:51 +02:00
  • e747a6f3a6 Use unsigned for bit-field variables Johannes Schindelin 2019-10-17 17:01:56 +02:00
  • f3a162f095 pick better umul_overflow variant based on size_t size daan 2019-10-17 09:52:10 -07:00
  • 4609537b8a pick better umul_overflow variant based on intptr size daan 2019-10-17 09:47:12 -07:00
  • 08d83cc33d disallow regular allocation from the huge reserved area daan 2019-10-17 09:24:57 -07:00
  • a96c90db5d remove old windows overriding method daan 2019-10-17 09:22:23 -07:00
  • 0e188a18a7 update test to match malloc with free daan 2019-10-17 09:21:20 -07:00
  • 46aa16b432 updated redirection module on windows daan 2019-10-17 09:20:57 -07:00
  • 99141497ee merge from dev win-m4 daan 2019-10-12 11:17:05 -07:00
  • 9bf9bcb9b9 Merge branch 'master' into dev daan 2019-10-12 10:42:54 -07:00
  • 7441aa4212 update redirection module to add additional checks daan 2019-10-12 10:42:34 -07:00
  • 480f7683a9 cleanup delayed output daan 2019-10-12 10:42:04 -07:00
  • 5e9b37dc4e add delayed output buffer Daan Leijen 2019-10-11 17:03:09 -07:00
  • 7d018dc9e1 add delayed output buffer Daan Leijen 2019-10-11 17:03:09 -07:00
  • e946d56ba0 Merge branch 'master' of https://github.com/microsoft/mimalloc Daan Leijen 2019-10-07 12:13:51 -07:00