2851 Commits
Author SHA1 Message Date
Frank Denis 236cd2e65c fn() is not a valid C prototype 2019-06-25 12:16:36 +02:00
Johannes Schindelin b2706a05bb Set up CI with Azure Pipelines
This sets up an Azure Pipeline to build the library, publishing
the artifacts for convenience.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2019-06-25 10:24:44 +02:00
Jim Huang 256eb97849 Avoid unnecessary symbol exposure with ELF-based systems
GCC's default visibility is "public" but can be changed to
"hidden" with the argument "-fvisibility=hidden".

Tested with x86_64 / Ubuntu Linux 18.04 LTS:

[before]
$ nm -g -C libmimalloc.so | grep "T " | wc -l
142

[after]
$ nm -g -C libmimalloc.so | grep "T " | wc -l
93

This patch does not change the build on macOS.
2019-06-25 10:00:22 +08:00
daan c6c1d5fffd update docs to new MI_ prefixed build options 2019-06-24 19:00:16 -07:00
daan 4ea0e2b4ba Merge branch 'master' into dev 2019-06-24 18:54:27 -07:00
daan 91cb4cee8a use MI_ prefix for all options to better support subdirectory cmake, issue #3 2019-06-24 18:54:03 -07:00
Daan 30b8624d6e Merge pull request #22 from myd7349/win32-cmake-patch
Fix CMake configuration on Windows
2019-06-24 18:19:49 -07:00
daan c1226611c6 Merge branch 'master' into dev 2019-06-24 18:13:04 -07:00
Daan 8bb8852d4f Merge pull request #17 from jserv/macos-rebranding
Apple rebrands "OS X" as "macOS"
2019-06-24 18:12:06 -07:00
Daan e86935e108 Merge pull request #18 from jserv/fix-typo
Fix typo
2019-06-24 18:09:26 -07:00
daan cc951affac fix compilation on older mac systems without CLOCK_MONOTONIC 2019-06-24 18:06:46 -07:00
daan a16d95375f remove lock code from atomics (as it is unused) 2019-06-24 17:54:41 -07:00
Daan 8e244f6616 Merge pull request #33 from dscho/fix-prototypes
Use `void` in the signatures of parameter-less functions
2019-06-24 17:49:50 -07:00
Daan 460ac23307 Merge pull request #34 from jserv/use-clock_gettime
Use clock_gettime() instead of timespec_get()
2019-06-24 17:48:46 -07:00
myd7349 b7c8d8f007 Fix CMake configuration on Windows
- Do not define MI_MALLOC_OVERRIDE when built as a static library
- Use different output names for shared lib and static lib
2019-06-25 08:02:17 +08:00
daan f36149a9ac fix format specifiers 2019-06-24 12:20:32 -07:00
Jim Huang 855e2f0d89 Use clock_gettime() instead of timespec_get()
clock_gettime(CLOCK_REALTIME, &ts) is equivalent to timespec_get(&ts,
TIME_UTC) in C11.

It has the advantage that avoids the following building error when building
with macOS:

  warning: 'timespec_get' is only available on macOS 10.15 or newer
   [-Wunguarded-availability-new]
2019-06-24 23:56:19 +08:00
daan cbbd57322a Merge branch 'master' into dev 2019-06-24 08:12:25 -07:00
Johannes Schindelin 464efa80b0 Fix prototypes of parameter-less functions
GCC does want to complain about parameter-less functions declared
without the recommended `void` as parameter list.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2019-06-24 17:03:33 +02:00
daan 91222691cb fix more warnings on mingw build 2019-06-24 00:42:45 -07:00
daan c1c848516c fix warnings on mingw build 2019-06-24 00:37:15 -07:00
daan faadceadf5 Merge branch 'master' into dev 2019-06-24 00:21:07 -07:00
daan 443fa0fbb5 fix assertions for the new huge page cache 2019-06-24 00:06:22 -07:00
daan f0731862d6 fix compilation on mingw, issue #25 2019-06-23 23:17:44 -07:00
daan cd7aa0ce83 improve handling of huge pages in the cache 2019-06-23 23:15:42 -07:00