Commit Graph

6 Commits

Author SHA1 Message Date
Johannes Schindelin
ab1a8a081a fixup! mimalloc: adjust for building inside Git
We want to compile mimalloc's source code as part of Git, rather than
requiring the code to be built as an external library: mimalloc uses a
CMake-based build, which is not necessarily easy to integrate into the
flavors of Git for Windows (which will be the main benefitting port).

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2023-12-19 12:05:30 +01:00
Johannes Schindelin
f2485bac9d amend! Import the source code of mimalloc v2.0.9
Import the source code of mimalloc v2.1.2

This commit imports mimalloc's source code as per v2.1.2, fetched from
the tag at https://github.com/microsoft/mimalloc.

The .c files are from the src/ subdirectory, and the .h files from the
include/ and include/mimalloc/ subdirectories. We will subsequently
modify the source code to accommodate building within Git's context.

Since we plan on using the `mi_*()` family of functions, we skip the
C++-specific source code, some POSIX compliant functions to interact
with mimalloc, and the code that wants to support auto-magic overriding
of the `malloc()` function (mimalloc-new-delete.h, alloc-posix.c,
mimalloc-override.h, alloc-override.c, alloc-override-osx.c,
alloc-override-win.c and static.c).

To appease the `check-whitespace` job of Git's Continuous Integration,
this commit was washed one time via `git rebase --whitespace=fix`.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2023-12-19 12:05:30 +01:00
Johannes Schindelin
57e20a3394 fixup! Import the source code of mimalloc v2.0.9
In preparation for upgrading mimalloc to v2.1.2, let's revert this patch
so that we can start afresh, from a clean slate.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2023-12-19 10:34:27 +01:00
Johannes Schindelin
0b1b785584 fixup! mimalloc: adjust for building inside Git
Revert this in preparation for upgrading mimalloc to v2.1.2 and then
redoing this patch.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2023-12-19 10:33:21 +01:00
Johannes Schindelin
7e401c43bc mimalloc: adjust for building inside Git
We want to compile mimalloc's source code as part of Git, rather than
requiring the code to be built as an external library: mimalloc uses a
CMake-based build, which is not necessarily easy to integrate into the
flavors of Git for Windows (which will be the main benefitting port).

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2023-11-20 18:02:08 +01:00
Johannes Schindelin
30030512cd Import the source code of mimalloc v2.0.9
This commit imports mimalloc's source code as per v2.0.9, fetched from
the tag at https://github.com/microsoft/mimalloc.

The .c files are from the src/ subdirectory, and the .h files from the
include/ subdirectory. We will subsequently modify the source code to
accommodate building within Git's context.

Since we plan on using the `mi_*()` family of functions, we skip the
C++-specific source code, some POSIX compliant functions to interact
with mimalloc, and the code that wants to support auto-magic overriding
of the `malloc()` function (mimalloc-new-delete.h, alloc-posix.c,
mimalloc-override.h, alloc-override.c, alloc-override-osx.c,
alloc-override-win.c and static.c).

To appease the `check-whitespace` job of Git's Continuous Integration,
this commit was washed one time via `git rebase --whitespace=fix`.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2023-11-20 18:02:08 +01:00