Commit graph

  • 95afe453f4 fix compilation warning on windows, issue #94 daan 2019-07-09 23:49:12 -07:00
  • d8c47bfed2 ensure commit of reused cached segments daan 2019-07-09 23:37:59 -07:00
  • 3192ca4682 merge with dev-win daan 2019-07-09 23:34:17 -07:00
  • 3009a7b1fe support non- eager_commit; on larson reduces commit charge 10x, but other benchmarks often see no improvement daan 2019-07-09 21:34:56 -07:00
  • 2ef1f1df94 Merge branch 'dev' into dev-win daan 2019-07-09 21:05:30 -07:00
  • 09195b6a5f add commit charge statistics on windows daan 2019-07-09 21:05:09 -07:00
  • 873d07d89d merge with dev daan 2019-07-09 20:44:58 -07:00
  • 897d47a0fb Merge branch 'dev' into dev-win daan 2019-07-09 20:35:52 -07:00
  • ad9db3a633 fix leak of huge segments in caches v1.0.3 daan 2019-07-09 20:35:07 -07:00
  • ee3f2059dc fix leak in segment cache freeing daan 2019-07-09 20:22:53 -07:00
  • 0314373d93 add reset_decommit, reset_discard options; maintain more statistics daan 2019-07-09 20:24:00 -07:00
  • 2cfdbc2cbb fix leak in segment cache freeing daan 2019-07-09 20:22:53 -07:00
  • 5928f12b15 Fix typo numbes -> number Julian Fang 2019-07-10 08:38:58 +08:00
  • 35b590de21 Merge branch 'dev' into dev-exp daan 2019-07-09 15:12:18 -07:00
  • 8ef37e6c0b update atomic exchange memory model annotations for unix v1.0.2 daan 2019-07-09 14:56:43 -07:00
  • cf8815854c fix cmake issues with OBJECT install daan 2019-07-09 11:32:24 -07:00
  • 129149977d Merge branch 'dev' into dev-exp daan 2019-07-08 17:45:04 -07:00
  • 76023ca45f fix path max in realpath on unix (pr #69) daan 2019-07-08 17:43:10 -07:00
  • 8203f3dcfa add full heap aligned allocation api (issue #52); remove rezalloc (issue #63); add mi_version daan 2019-07-08 17:17:07 -07:00
  • 5f607e0f58 update documentation daan 2019-07-08 17:15:34 -07:00
  • 4d22ff6d03 Merge branch 'dev' into dev-exp daan 2019-07-08 15:45:50 -07:00
  • d656f3e339 merge with master daan 2019-07-08 15:45:37 -07:00
  • 493dfc4b82 merge with dev daan 2019-07-08 15:42:42 -07:00
  • fc35f6069a Add NO_SYSTEM_ENVIRONMENT_PATH and example of linking with the object file; pr #67 daan 2019-07-08 13:37:41 -07:00
  • 56bdb2c2f3 add more const declarations (pr #79) daan 2019-07-08 12:00:59 -07:00
  • df49766d9a Add mimalloc.h to /local/include when installing Julian Fang 2019-07-08 15:35:07 +08:00
  • 73cddd53d7 Use bitwise operation to divide constant YangHau 2019-07-08 15:32:28 +08:00
  • 7f0137a617 Fix compilation error with MSVC C++ daan 2019-07-07 21:59:53 -07:00
  • 7e743dfb58 fix C++ compilation warnings with VisualStudio 2017 daan 2019-07-07 18:52:12 -07:00
  • c3528203b5 fix compilation with C++, fix overrides in C++ to adhere to the spec (issue #26) daan 2019-07-07 18:11:21 -07:00
  • dd59a917ce Expose mi prefixed public standard implementations of various posix, unix, and c++ allocation functions. See issue #75 daan 2019-07-07 13:44:33 -07:00
  • 4486efa01b Avoid system environment path in find_package Pei-Hsuan Hung 2019-07-02 16:29:21 +08:00
  • a192d6893e initial support of 2MB pages on Mac David Carlier 2019-07-05 20:05:04 +01:00
  • 860da5d7db Constify the parameters of some functions that can become it Ernesto Castellotti 2019-07-05 00:20:36 +02:00
  • b40fe5178a fix static object linking daan 2019-07-04 14:56:58 -07:00
  • 983c96a238 Merge branch 'dev' into dev-exp daan 2019-07-04 14:46:53 -07:00
  • 5ff037f8f8 add capability to override multiple entry points in windows dynamic override; and stop patching msvcrt, just crtbase daan 2019-07-04 12:06:15 -07:00
  • 74dc95c1d6 fix crash triggered in release mode with windows dynamic overriding daan 2019-07-04 12:04:56 -07:00
  • a5d76cc083 Reduce divsions in mi_heap_area_visit_blocks() Julian Fang 2019-07-05 01:51:53 +08:00
  • 3ff9e900b9 Implement find first set for reducing division Julian Fang 2019-07-05 01:49:42 +08:00
  • 3039dbfcdd for windows dynamic override, add standard api override and stop patching new/delete (for now) daan 2019-07-04 09:29:33 -07:00
  • 6abdc5f5a3 do not enable verbose by default in the debug build; add trace messages for verbose level 2 daan 2019-07-04 09:28:22 -07:00
  • 069208b184 Possible fix to windows dynamic override calling register onexit directly daan 2019-07-03 19:47:44 -07:00
  • 1125271c27
    Merge pull request #74 from ErnyTech/patch-1 v1.0.0 show Daan 2019-07-03 18:52:55 -07:00
  • 24feb5e305 update Visual Studio project to not use _MBCS by default, issue #59 daan 2019-07-03 18:49:48 -07:00
  • 663769c512 merge dev branch daan 2019-07-03 18:12:55 -07:00
  • 8c2f52dee8
    Suppressed the new GCC 9 -Wmissing-attributes warnings Ernesto Castellotti 2019-07-04 00:21:15 +02:00
  • c3a5f84ad3 rewrite of low-level OS (aligned) allocation to better handle large pages and aligned allocation daan 2019-07-03 14:52:32 -07:00
  • 7b4f3591f0 fix dynamic override when both msvcrt and ucrtbase are loaded in any order using priorities daan 2019-07-03 14:23:30 -07:00
  • 9390642879 fix windows dynamic malloc overried when both ucrtbase and msvcrt are loaded; also fix virtualalloc2 on 32-bit daan 2019-07-03 13:00:43 -07:00
  • 158705815e fix aligned_ensured bug, trie inc bug, stats in the OS module daan 2019-07-03 00:16:27 -07:00
  • 10a29f17c8 more conservative shrinking of memory daan 2019-07-02 22:49:12 -07:00
  • cec3c4f9ff merge in dev branch daan 2019-07-02 17:28:15 -07:00
  • 5c0ffe9865 merge back changes to OS module from 'dev-exp' daan 2019-07-02 17:17:03 -07:00
  • 8cb36c62e6 merge with dev branch daan 2019-07-02 16:44:35 -07:00
  • c465f6ae35 Merge branch 'master' into dev daan 2019-07-02 16:32:52 -07:00
  • e2d3fefc1d Merge branch 'dev' of https://github.com/microsoft/mimalloc into dev daan 2019-07-02 16:28:47 -07:00
  • eee7601206
    Merge pull request #43 from myd7349/cmake-build-options Daan 2019-07-02 16:28:30 -07:00
  • 875ecbd21e
    Merge pull request #68 from ObiWahn/make-includes-available Daan 2019-07-02 16:26:04 -07:00
  • 42efe51184 Merge branch 'master' into dev daan 2019-07-02 16:22:55 -07:00
  • f06931ba7e
    Merge pull request #65 from devnexen/mi_mmap_prot_max_support Daan 2019-07-02 16:21:13 -07:00
  • b0ceb4a44c forward strdup, strndup, and realpath too daan 2019-07-02 15:56:01 -07:00
  • b3f533167b Merge branch 'master' into dev daan 2019-07-02 15:52:26 -07:00
  • 665b7324a4
    Merge pull request #61 from jserv/indent-override Daan 2019-07-02 15:51:42 -07:00
  • 7dc3a5a18e Merge branch 'master' into dev daan 2019-07-02 15:44:48 -07:00
  • 04b1fd7b8d Fix macro spelling daan 2019-07-02 12:57:12 -07:00
  • 4326bda2c7 Fix main heap cookie on macOS daan 2019-07-02 12:53:53 -07:00
  • aeff1db32b Fixing interpose on macOS daan 2019-07-02 12:49:28 -07:00
  • a41789af20 alloc: improve mi_realpath on Linux Laszlo Budai 2019-07-02 18:48:02 +02:00
  • 825d00a001
    Merge branch 'master' into indent-override Daan 2019-07-02 09:03:32 -07:00
  • ea6601c9cc
    Merge pull request #62 from jserv/correct-linux-wording Daan 2019-07-02 09:01:24 -07:00
  • 39956aa71f
    Merge pull request #64 from 4ge32/master Daan 2019-07-02 08:53:16 -07:00
  • d35fc6cdc4 PR#66 by kickunderscore to ensure consistent small block alignment daan 2019-07-02 08:46:50 -07:00
  • 06bcea1761 Initial commit of separate memory region layer and improved large OS pages support, see 'memory.c' daan 2019-07-02 07:23:24 -07:00
  • 408b76d103 make includes available for projects that add mimalloc as subdirectory Jan Christoph Uhde 2019-06-27 12:43:27 +02:00
  • 6b6488587a
    consisten align small blocks in first segment page kickunderscore 2019-07-01 23:35:07 +02:00
  • b22aeb86b6
    set page->block_size before call to _mi_segment_page_start() for alignment calculation kickunderscore 2019-07-01 23:28:28 +02:00
  • bed746d7d6 Using BSD new PROT_MAX mmap to block page address wider promotions David Carlier 2019-07-01 06:56:16 +00:00
  • ed5cdba634 fix a environment variables name Fumiya Shigemitsu 2019-06-30 14:20:23 +09:00
  • 2347a65fe0 Clarify the comment about Linux distributions Jim Huang 2019-06-30 01:17:13 +08:00
  • 329a494783 Make forwarding macros friendly to indentation or style checkers Jim Huang 2019-06-30 01:06:13 +08:00
  • a5b22af7ec fix object install error myd7349 2019-06-29 21:53:47 +08:00
  • d6901558cd enable large OS page support on Windows daan 2019-06-28 22:35:57 -07:00
  • 6eaf387891 Add support for aligned allocation on Windows using VirtualAlloc2 daan 2019-06-28 19:48:30 -07:00
  • 38eb0a9449
    Update readme.md Daan 2019-06-27 13:43:23 -07:00
  • ae47a2b13e Add initial testing file, test target, and readme about testing, issue #10, pr #57 daan 2019-06-27 13:36:19 -07:00
  • 4c87643c29 add check to see if we truly override the system malloc daan 2019-06-27 13:34:50 -07:00
  • d2a2508af3 fix overly restrictive assertion daan 2019-06-27 13:33:53 -07:00
  • 1e636c45da add check for overflowing size allocation daan 2019-06-27 13:33:28 -07:00
  • 12d756e7b2 fix page count of heap when absorbing daan 2019-06-27 13:29:55 -07:00
  • 36826a96c9 add power-of-two check to posix_memalign, pr #56 daan 2019-06-27 13:29:00 -07:00
  • ec2a8f387b strengthen alignment check to be void* aligned daan 2019-06-27 13:27:53 -07:00
  • 298b829d5a Return EINVAL when alignment is not a power of 2 Julian Fang 2019-06-27 21:24:59 +08:00
  • 034bae09e4 allow to compile tests without installing Jan Christoph Uhde 2019-06-27 12:43:27 +02:00
  • d146984a91 Return EINVAL when alignment is not a power of 2 to match posix standard Julian Fang 2019-06-27 16:18:50 +08:00
  • fb348e1cb0 Return EINVAL when alignment is not a power of 2 to match posix standard Julian Fang 2019-06-27 16:10:46 +08:00
  • 5dfced26c2
    Merge pull request #49 from Benzodia/master Daan 2019-06-26 08:44:25 -07:00
  • fcb338a21b
    Merge pull request #51 from Qix-/patch-1 Daan 2019-06-26 08:43:02 -07:00
  • 45b254f08d
    is it -> as it Qix 2019-06-26 12:53:46 +02:00
  • c19d3a27a8 Remove underscore prefixes to match c lanuguage standard Julian Fang 2019-06-26 12:57:13 +08:00