Commit graph

  • 5135c2b96a add test-api to vs solution daan 2020-02-01 14:29:55 -08:00
  • 60cfc623be fix zero initialization of blocks under 8 bytes when padding check is active daan 2020-02-01 14:29:12 -08:00
  • a169cf0e3f merge dev-exp; add pthread TLS support for macOSX daan 2020-02-01 13:11:48 -08:00
  • edff9d4fbb merge from dev-win (padding) daan 2020-02-01 12:32:59 -08:00
  • aa68b8cbc7 improve encoding of padding canary and buffer overflow detection daan 2020-02-01 12:15:12 -08:00
  • 40f1e1e07b byte-precise heap block overflow checking with encoded padding daan 2020-01-31 23:39:51 -08:00
  • 68112a2751 better padding implementation, more precise statistics daan 2020-01-31 20:34:24 -08:00
  • 8422ab125d improve messages; fix reset size calculation on large pages daan 2020-01-31 17:28:26 -08:00
  • 724602b78b enable page-reset by default daan 2020-01-31 17:27:45 -08:00
  • 4531367de2 fix padding check for aligned allocation; improve perf for small aligned allocations daan 2020-01-31 13:20:02 -08:00
  • f820fae858 merge from dev; add retired collect on abandon daan 2020-01-30 07:24:35 -08:00
  • a7c69ccbea fix stat accounting of segments with huge blocks daan 2020-01-30 06:25:42 -08:00
  • ed1c8a203a improve performance with tls recursion counter daan 2020-01-29 23:08:12 -08:00
  • 03b363a1c2 first working tls on macOS using interpose; still slow daan 2020-01-29 22:46:44 -08:00
  • 7ff3ec2bf7 use EFAULT for buffer overflow and call abort in debug mode (as well as secure mode) daan 2020-01-29 17:25:40 -08:00
  • 5d212d688f add MI_PADDING build option to add padding to each block to detect heap block overflows daan 2020-01-29 17:10:57 -08:00
  • 9a532037df merge from dev-exp daan 2020-01-29 07:35:38 -08:00
  • d221a4b904 merge from dev-exp daan 2020-01-27 23:36:53 -08:00
  • b3dae128de Merge branch 'dev' into dev-exp daan 2020-01-27 23:15:37 -08:00
  • 9c166d88f0 increase retire page size daan 2020-01-27 23:15:24 -08:00
  • 42586de104 fix is_zero setting in regions daan 2020-01-27 23:13:57 -08:00
  • 54e206a0a1 increase retire page size daan 2020-01-27 22:41:24 -08:00
  • 09b98e0f7f merge from dev-exp; resolve conflicts daan 2020-01-27 22:14:10 -08:00
  • b50bec463d merge from dev-exp; better abandoned reclamation daan 2020-01-27 22:12:23 -08:00
  • e628fc7067 cleanup reclaim logic daan 2020-01-26 12:39:11 -08:00
  • d4927adddc add extra assertion that all segments are free on thread termination daan 2020-01-25 14:30:02 -08:00
  • 394b796ea0 fix over-eager page reset in segment reclamation daan 2020-01-25 13:43:56 -08:00
  • 4faf412f53 move 'memory.c' to 'region.c' daan 2020-01-25 13:28:49 -08:00
  • 7785139201 fix warning on gcc on attribute ignore in templates daan 2020-01-25 13:28:24 -08:00
  • 62b8fb26b1 fix freeing of segments on forced reclaim daan 2020-01-25 13:27:47 -08:00
  • cb433d272a Merge branch 'dev' into dev-exp-abandon daan 2020-01-25 13:03:06 -08:00
  • 19a0d9dfa0 clean up stress test daan 2020-01-25 12:51:56 -08:00
  • f4630d43a7 allow reset on large pages; check commit status before reset daan 2020-01-25 12:49:14 -08:00
  • 5e32d00aab add visit count to abandoned to limit list length daan 2020-01-25 12:26:08 -08:00
  • 3ec691cfb4 Merge branch 'dev' of https://github.com/microsoft/mimalloc into dev daan 2020-01-25 11:20:17 -08:00
  • 165734939b
    Merge pull request #198 from devnexen/arc4random_api_apple Daan 2020-01-25 09:51:29 -08:00
  • 2b667bd3ae enable arc4random abi under apple David Carlier 2020-01-25 14:47:09 +00:00
  • 072ceb2efe Merge branch 'dev' into dev-exp-abandon daan 2020-01-24 20:20:55 -08:00
  • ecece57284 fix bug in committed check in arena allocation daan 2020-01-24 20:20:43 -08:00
  • 47300eeda3 avoid memset daan 2020-01-24 20:17:33 -08:00
  • b31bc52618 add cache alignment directives for contended variables daan 2020-01-24 19:02:13 -08:00
  • e070eba112 fix tagged null encoding, search segment cache before reclaim daan 2020-01-24 16:30:52 -08:00
  • 9a400ecce9 Merge branch 'dev' into dev-exp-abandon daan 2020-01-24 15:48:34 -08:00
  • 4ae51096ec add warning on region exhaustion daan 2020-01-24 15:45:03 -08:00
  • 06a82e38bc
    fix mismatched parantheses RealKC 2020-01-24 21:46:59 +02:00
  • a8ec04ab4b
    fixed formatting and typo RealKC 2020-01-24 21:36:35 +02:00
  • 28c14d99c3 clean up comments daan 2020-01-24 11:03:12 -08:00
  • 82e9f4a009
    Make mi_stl_allocator::address work with T's with overloaded operator& RealKC 2020-01-24 20:56:40 +02:00
  • 8cf4882a85 fix linux build daan 2020-01-24 10:38:25 -08:00
  • 5037ab7b01
    Mark operator new overloads mi_attr_nodiscard_if_cpp20 RealKC 2020-01-24 20:28:21 +02:00
  • 9b1ca1d0e7
    Add mi_attr_nodiscard_if_cpp20 and mark mi_stl_allocator::allocate overloads as such RealKC 2020-01-24 20:26:42 +02:00
  • 8b1520f5c1 make stress test deterministic daan 2020-01-23 21:53:28 -08:00
  • e68293741e fix assertion, add check for page committed before doing reset daan 2020-01-23 21:44:32 -08:00
  • 58fdcbb0cd fix bug in collect where has_page was not set on free pages daan 2020-01-23 21:37:14 -08:00
  • 4a2a0c2d50 initial abandon based on fine-grained reclamation daan 2020-01-23 19:50:35 -08:00
  • f8ab4bd7dc add leak test daan 2020-01-23 19:49:32 -08:00
  • 12701b1aac do not reclaim segments on collect daan 2020-01-23 15:48:51 -08:00
  • 76e727f7d1 fix assertion on page destroy daan 2020-01-23 15:39:38 -08:00
  • c9106e74a8 remove __thread attribute from mimalloc.h daan 2020-01-23 11:06:25 -08:00
  • cdc34595cf fix warning in msvc daan 2020-01-23 10:52:27 -08:00
  • 6fb434a99b use -fvisibility=hidden on clang as well daan 2020-01-23 10:31:47 -08:00
  • 0316859e06 improve codegen for mi_free daan 2020-01-23 10:03:03 -08:00
  • 66818bf632 use atomic yield on delayed-freeing; clarify code daan 2020-01-23 09:57:55 -08:00
  • a46d20a681 merge with new atomic macros daan 2020-01-22 20:53:44 -08:00
  • e226ebcc97 Merge branch 'dev' into dev-arena daan 2020-01-22 20:39:33 -08:00
  • 3bbbe6c686 enable atomic yield when delayed_freeing is encountered daan 2020-01-22 20:12:42 -08:00
  • 0193a15f7e nicer message on huge OS page reservation daan 2020-01-22 19:46:43 -08:00
  • e3b16fe4ef reduce type casts in atomic operations daan 2020-01-22 19:44:54 -08:00
  • 0f14f431c5 bump version to 1.5 for further development daan 2020-01-22 18:33:07 -08:00
  • 6a744a8549
    Update readme.md v1.4.0 Daan 2020-01-22 18:16:40 -08:00
  • b7aef989e8
    Update readme.md Daan 2020-01-22 15:27:47 -08:00
  • 433598296a
    Fix benchmark chart display Daan 2020-01-22 15:21:54 -08:00
  • 6f7d98d669 fix benchmark chart links daan 2020-01-22 15:08:18 -08:00
  • c2c56e29c7 add benchmark charts daan 2020-01-22 15:06:44 -08:00
  • af2cfe255a add updated benchmarks daan 2020-01-22 15:05:02 -08:00
  • caa5e51a67 align size of page_t, increase slices per segment Daan Leijen 2020-01-22 11:29:32 -08:00
  • 0028272cf4 small fixes, reduced segment size, fix merge conflicts daan 2020-01-20 22:33:29 -08:00
  • 394a7a92ab merge from dev daan 2020-01-20 19:06:08 -08:00
  • 5bc1c52ae6 update documentation daan 2020-01-20 17:34:29 -08:00
  • 3957b2fd28 add mi_new_realloc(n) to support C++ style reallocation that raises std::bad_alloc on out-of-memory daan 2020-01-20 15:41:56 -08:00
  • 146899af8a add missing members to stl allocator (#193) daan 2020-01-20 15:27:05 -08:00
  • b77be05e40 only collect retired at fresh page allocation daan 2020-01-20 12:14:34 -08:00
  • 9e5a7eb675 Add vcpkg installation instructions NancyLi1013 2020-01-20 01:23:50 -08:00
  • a33ebb8625 add alloc_align attribute to aligned allocation functions daan 2020-01-19 22:14:35 -08:00
  • 514b315283 add max_size member to STL allocator daan 2020-01-19 21:27:46 -08:00
  • 9d7ac76d93 fix compilation under Intel C compiler (icc) daan 2020-01-19 18:35:45 -08:00
  • e8d7c80c74 fix build warnings on linux daan 2020-01-19 17:33:36 -08:00
  • 41e717c2e0 fix assertion in mi_block_zero_init (issue #194) daan 2020-01-18 20:30:12 -08:00
  • dc58388968 Add ability to register custom error function called on various error conditions; including ENOMEM daan 2020-01-17 19:59:55 -08:00
  • 3e982a3813 fix STL deallocate passing count (instead of size) to mi_free_size daan 2020-01-17 15:58:43 -08:00
  • dbe721de39 dont compile test-stress.c as C++ code (or we get atomic compilation errors) daan 2020-01-17 15:45:12 -08:00
  • 6dd636d82d improve STL allocator using mi_new_n and removing unused parameter names; follow up from pr #193 and #188 daan 2020-01-17 15:41:52 -08:00
  • f4ee1760b8 Suppress C source compiled as C++ warning on clang daan 2020-01-17 15:39:41 -08:00
  • 9453d8b468 update documentation daan 2020-01-17 15:39:06 -08:00
  • edcbc6afb2 C++11 conforming STL allocator __vic 2020-01-17 11:30:01 +03:00
  • dc94d25890 update documentation daan 2020-01-16 19:39:14 -08:00
  • 6b7356a10a make mimalloc compile with the highest warning level on msvc daan 2020-01-16 18:12:01 -08:00
  • b84b11b6a9 update readme daan 2020-01-16 18:11:29 -08:00
  • c6037ac8f2 fix assertion index daan 2020-01-16 16:56:02 -08:00
  • f750e793ff ensure unique build names for C++ azure pipeline jobs daan 2020-01-16 16:52:44 -08:00