Commit Graph

1044 Commits

Author SHA1 Message Date
daan b40fe5178a fix static object linking 2019-07-04 14:56:58 -07:00
daan 983c96a238 Merge branch 'dev' into dev-exp 2019-07-04 14:46:53 -07:00
daan 5ff037f8f8 add capability to override multiple entry points in windows dynamic override; and stop patching msvcrt, just crtbase 2019-07-04 12:06:15 -07:00
daan 74dc95c1d6 fix crash triggered in release mode with windows dynamic overriding 2019-07-04 12:04:56 -07:00
daan 3039dbfcdd for windows dynamic override, add standard api override and stop patching new/delete (for now) 2019-07-04 09:29:33 -07:00
daan 6abdc5f5a3 do not enable verbose by default in the debug build; add trace messages for verbose level 2 2019-07-04 09:28:22 -07:00
daan 069208b184 Possible fix to windows dynamic override calling register onexit directly 2019-07-03 19:47:44 -07:00
Daan 1125271c27 Merge pull request #74 from ErnyTech/patch-1
Suppressed the new GCC 9 -Wmissing-attributes warnings
v1.0.0 show
2019-07-03 18:52:55 -07:00
daan 24feb5e305 update Visual Studio project to not use _MBCS by default, issue #59 2019-07-03 18:49:48 -07:00
daan 663769c512 merge dev branch 2019-07-03 18:12:55 -07:00
Ernesto Castellotti 8c2f52dee8 Suppressed the new GCC 9 -Wmissing-attributes warnings
With the new release of the GCC 9 compiler the operation of -Wmissing-attributes warnings has also been extended to aliases: this causes a warnings if the alias has less attributes than its target.

This warnings does not actually indicate a problem in the mimalloc code and you could safely ignore it by adding "-Wno-missing-attributes" to the CFLAGS, however I was not going to use a "hack" to hide the warning when compiling alloc-override .c

So this patch solves the problem simply by using an attribute (present only in GCC> = 9) that copies the attributes of another function, since this attribute is exclusive only for GCC 9 (or later) I had to use a simple precompiler instruction to add the "copy" attribute only with GCC 9.
2019-07-04 00:21:15 +02:00
daan c3a5f84ad3 rewrite of low-level OS (aligned) allocation to better handle large pages and aligned allocation 2019-07-03 14:52:32 -07:00
daan 7b4f3591f0 fix dynamic override when both msvcrt and ucrtbase are loaded in any order using priorities 2019-07-03 14:23:30 -07:00
daan 9390642879 fix windows dynamic malloc overried when both ucrtbase and msvcrt are loaded; also fix virtualalloc2 on 32-bit 2019-07-03 13:00:43 -07:00
daan 158705815e fix aligned_ensured bug, trie inc bug, stats in the OS module 2019-07-03 00:16:27 -07:00
daan 10a29f17c8 more conservative shrinking of memory 2019-07-02 22:49:12 -07:00
daan cec3c4f9ff merge in dev branch 2019-07-02 17:28:15 -07:00
daan 5c0ffe9865 merge back changes to OS module from 'dev-exp' 2019-07-02 17:17:03 -07:00
daan 8cb36c62e6 merge with dev branch 2019-07-02 16:44:35 -07:00
daan c465f6ae35 Merge branch 'master' into dev 2019-07-02 16:32:52 -07:00
daan e2d3fefc1d Merge branch 'dev' of https://github.com/microsoft/mimalloc into dev 2019-07-02 16:28:47 -07:00
Daan eee7601206 Merge pull request #43 from myd7349/cmake-build-options
fix object file install error
2019-07-02 16:28:30 -07:00
Daan 875ecbd21e Merge pull request #68 from ObiWahn/make-includes-available
make includes available for projects that add mimalloc as subdirectory
2019-07-02 16:26:04 -07:00
daan 42efe51184 Merge branch 'master' into dev 2019-07-02 16:22:55 -07:00
Daan f06931ba7e Merge pull request #65 from devnexen/mi_mmap_prot_max_support
Using BSD new PROT_MAX mmap to block page address wider promotions
2019-07-02 16:21:13 -07:00