104 Commits

Author SHA1 Message Date
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
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 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 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
Daan 665b7324a4 Merge pull request #61 from jserv/indent-override
Make forwarding macros friendly to indentation or style checkers
2019-07-02 15:51:42 -07:00
Daan 825d00a001 Merge branch 'master' into indent-override 2019-07-02 09:03:32 -07:00
Daan ea6601c9cc Merge pull request #62 from jserv/correct-linux-wording
Clarify the comment about Linux distributions
2019-07-02 09:01:24 -07:00
Daan 39956aa71f Merge pull request #64 from 4ge32/master
fix a environment variables name
2019-07-02 08:53:16 -07:00
Jan Christoph Uhde 408b76d103 make includes available for projects that add mimalloc as subdirectory 2019-07-02 11:12:04 +02:00
David Carlier bed746d7d6 Using BSD new PROT_MAX mmap to block page address wider promotions 2019-07-01 06:56:16 +00:00
Fumiya Shigemitsu ed5cdba634 fix a environment variables name
Some documents explain passing MIMALLOC_STATS=1 to print
statistics, though it handles as mimalloc_show_stats in the actual
code. According to the code, change the name MIMALLOC_STATS to MIMALLOC_SHOW_STATS.
2019-06-30 14:20:23 +09:00
Jim Huang 2347a65fe0 Clarify the comment about Linux distributions
Red Hat Linux was discontinued by Red Hat in 2003. It would make sense
to address glibc-based Linux distributions rather than Red Hat Linux.

Reference: https://en.wikipedia.org/wiki/Red_Hat_Linux
2019-06-30 01:17:13 +08:00
Jim Huang 329a494783 Make forwarding macros friendly to indentation or style checkers
Indention programs such as clang-format usually rely on the occurrence
of statement terminator, otherwise they are likely confused. The revised
forwarding macros do not contain semicolons character, which is friendly
to indentation or style checkers.
2019-06-30 01:06:13 +08:00
Daan 5dfced26c2 Merge pull request #49 from Benzodia/master
Remove underscore prefixes to match c lanuguage standard
2019-06-26 08:44:25 -07:00
Daan fcb338a21b Merge pull request #51 from Qix-/patch-1
is it -> as it
2019-06-26 08:43:02 -07:00
Qix 45b254f08d is it -> as it 2019-06-26 12:53:46 +02:00
Julian Fang c19d3a27a8 Remove underscore prefixes to match c lanuguage standard 2019-06-26 12:57:13 +08:00
daan fac0d4b409 fix passing void as argument 2019-06-25 20:06:34 -07:00
daan b3ce61c408 fix atomic statistics counter increase 2019-06-25 20:05:43 -07:00
daan 654bcd7049 Merge branch 'master' into dev 2019-06-25 19:57:45 -07:00
daan 9ba53d3e2b fix missing prototype for heap_alloc_small 2019-06-25 19:57:21 -07:00
Daan 1713c37f9d Merge pull request #28 from jserv/gcc-visibility
Avoid unnecessary symbol exposure with ELF-based systems
2019-06-25 19:54:28 -07:00
daan cae02b4676 Merge branch 'master' into dev 2019-06-25 19:45:59 -07:00
Daan 4c1d848d88 Merge pull request #38 from dscho/azure-pipelines
Set up CI (Azure Pipelines)
2019-06-25 19:43:36 -07:00
Daan f5d1170ae7 Merge pull request #41 from jedisct1/c-prototypes
fn() is not a valid C prototype
2019-06-25 19:38:44 -07:00