Skip to content

Commit b0958d8

Browse files
committed
merge from dev
2 parents 8253ac1 + 6d3c860 commit b0958d8

File tree

6 files changed

+20
-12
lines changed

6 files changed

+20
-12
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^(x86_64|x64|amd64|AMD64)$" OR CMAKE_GENE
130130
set(MI_ARCH "x64")
131131
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^(aarch64|arm64|armv[89].?|ARM64)$" OR CMAKE_GENERATOR_PLATFORM STREQUAL "ARM64" OR "arm64" IN_LIST CMAKE_OSX_ARCHITECTURES)
132132
set(MI_ARCH "arm64")
133-
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^(arm|armv[34567]|ARM)$")
133+
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^(arm|armv[34567].?|ARM)$")
134134
set(MI_ARCH "arm32")
135135
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^(riscv|riscv32|riscv64)$")
136136
if(CMAKE_SIZEOF_VOID_P==4)

cmake/mimalloc-config-version.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
set(mi_version_major 3)
2-
set(mi_version_minor 0)
2+
set(mi_version_minor 1)
33
set(mi_version_patch 4)
44
set(mi_version ${mi_version_major}.${mi_version_minor})
55

contrib/vcpkg/portfile.cmake

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ vcpkg_from_github(
44
HEAD_REF master
55

66
# The "REF" can be a commit hash, branch name (dev2), or a version (v2.2.1).
7-
# REF "v${VERSION}"
8-
REF 6a89f8554eaab8d8d00e17b5b09f79e1d8dbf61b
7+
REF "v${VERSION}"
8+
# REF 6a89f8554eaab8d8d00e17b5b09f79e1d8dbf61b
99

1010
# The sha512 is the hash of the tar.gz bundle.
1111
# (To get the sha512, run `vcpkg install mimalloc[override] --overlay-ports=<dir of this file>` and copy the sha from the error message.)
@@ -19,6 +19,7 @@ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
1919
secure MI_SECURE
2020
override MI_OVERRIDE
2121
optarch MI_OPT_ARCH
22+
nooptarch MI_NO_OPT_ARCH
2223
optsimd MI_OPT_SIMD
2324
xmalloc MI_XMALLOC
2425
asm MI_SEE_ASM

contrib/vcpkg/vcpkg.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mimalloc",
3-
"version": "3.0.2",
3+
"version": "3.1.4",
44
"port-version": 2,
55
"description": "Compact general purpose allocator with excellent performance",
66
"homepage": "https://github.com/microsoft/mimalloc",
@@ -35,6 +35,9 @@
3535
"optarch": {
3636
"description": "Use architecture specific optimizations (on x64: '-march=haswell;-mavx2', on arm64: '-march=armv8.1-a')"
3737
},
38+
"nooptarch": {
39+
"description": "Do _not_ use architecture specific optimizations (on x64: '-march=haswell;-mavx2', on arm64: '-march=armv8.1-a')"
40+
},
3841
"optsimd": {
3942
"description": "Allow use of SIMD instructions (avx2 or neon) (requires 'optarch' to be enabled)"
4043
},

include/mimalloc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ terms of the MIT license. A copy of the license can be found in the file
88
#ifndef MIMALLOC_H
99
#define MIMALLOC_H
1010

11-
#define MI_MALLOC_VERSION 304 // major + 2 digits minor
11+
#define MI_MALLOC_VERSION 314 // major + 2 digits minor
1212

1313
// ------------------------------------------------------
1414
// Compiler specific attributes

readme.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ is a general purpose allocator with excellent [performance](#performance) charac
1212
Initially developed by Daan Leijen for the runtime systems of the
1313
[Koka](https://koka-lang.github.io) and [Lean](https://github.com/leanprover/lean) languages.
1414

15-
Latest release : `v3.0.3` (beta) (2025-03-28).
16-
Latest v2 release: `v2.2.3` (2025-03-28).
17-
Latest v1 release: `v1.9.3` (2024-03-28).
15+
Latest release : `v3.1.4` (beta) (2025-06-09).
16+
Latest v2 release: `v2.2.4` (2025-06-09).
17+
Latest v1 release: `v1.9.4` (2024-06-09).
1818

1919
mimalloc is a drop-in replacement for `malloc` and can be used in other programs
2020
without code changes, for example, on dynamically linked ELF-based systems (Linux, BSD, etc.) you can use it as:
@@ -77,12 +77,16 @@ Enjoy!
7777
* `dev2`: development branch for mimalloc v2. This branch is downstream of `dev`
7878
(and is essentially equal to `dev` except for `src/segment.c`). Uses larger sliced segments to manage
7979
mimalloc pages that can reduce fragmentation.
80-
* `dev3`: development branch for mimalloc v3-beta. This branch is downstream of `dev`. This version
81-
simplifies the lock-free ownership of previous versions, has no thread-local segments any more.
82-
This improves sharing of memory between threads, and on certain large workloads may use (much) less memory.
80+
* `dev3`: development branch for mimalloc v3 beta. This branch is downstream of `dev`. This version
81+
simplifies the lock-free ownership of previous versions, and improves sharing of memory between
82+
threads. On certain large workloads this version may use (much) less memory.
8383

8484
### Releases
8585

86+
* 2025-06-09, `v1.9.4`, `v2.2.4`, `v3.1.4` (beta) : Some important bug fixes, including a case where OS memory
87+
was not always fully released. Improved v3 performance, build on XBox, fix build on Android, support interpose
88+
for older macOS versions, use MADV_FREE_REUSABLE on macOS, always check commit success, better support for Windows
89+
fixed TLS offset, etc.
8690
* 2025-03-28, `v1.9.3`, `v2.2.3`, `v3.0.3` (beta) : Various small bug and build fixes, including:
8791
fix arm32 pre v7 builds, fix mingw build, get runtime statistics, improve statistic commit counts,
8892
fix execution on non BMI1 x64 systems.

0 commit comments

Comments
 (0)