From ffdea636739fface084e4c5312546bb453986d06 Mon Sep 17 00:00:00 2001 From: Daan Leijen Date: Fri, 3 Jan 2025 20:34:14 -0800 Subject: [PATCH 1/4] update readme --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 264da2b5..ecb16ae4 100644 --- a/readme.md +++ b/readme.md @@ -81,7 +81,7 @@ Enjoy! ### Releases -* 2025-01-03, `v1.8.9`, `v2.1.9`, `v3.0-alpha`: Interim release. Support Windows arm64. New [guarded](#guarded) build that can place OS +* 2025-01-03, `v1.8.9`, `v2.1.9`, `v3.0.1-alpha`: Interim release. Support Windows arm64. New [guarded](#guarded) build that can place OS guard pages behind objects to catch buffer overflows as they occur. Many small fixes: build on Windows arm64, cygwin, riscV, and dragonfly; fix Windows static library initialization to account for thread local destructors (in Rust/C++); macOS tag change; macOS TLS slot fix; improve stats; From 9ec5da08b2677a4b08edf104172b2c529d2aa263 Mon Sep 17 00:00:00 2001 From: Daan Leijen Date: Sun, 5 Jan 2025 15:45:04 -0800 Subject: [PATCH 2/4] bump version for further development --- cmake/mimalloc-config-version.cmake | 4 ++-- include/mimalloc.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmake/mimalloc-config-version.cmake b/cmake/mimalloc-config-version.cmake index 49cc7660..7f3bd631 100644 --- a/cmake/mimalloc-config-version.cmake +++ b/cmake/mimalloc-config-version.cmake @@ -1,6 +1,6 @@ set(mi_version_major 1) -set(mi_version_minor 8) -set(mi_version_patch 9) +set(mi_version_minor 9) +set(mi_version_patch 2) set(mi_version ${mi_version_major}.${mi_version_minor}) set(PACKAGE_VERSION ${mi_version}) diff --git a/include/mimalloc.h b/include/mimalloc.h index ec6dabc6..d4e11a05 100644 --- a/include/mimalloc.h +++ b/include/mimalloc.h @@ -8,7 +8,7 @@ terms of the MIT license. A copy of the license can be found in the file #ifndef MIMALLOC_H #define MIMALLOC_H -#define MI_MALLOC_VERSION 189 // major + 2 digits minor +#define MI_MALLOC_VERSION 192 // major + 2 digits minor // ------------------------------------------------------ // Compiler specific attributes From 8210c9aa0a3508075e99148227e507c4aaafad2c Mon Sep 17 00:00:00 2001 From: Daan Leijen Date: Sun, 5 Jan 2025 15:47:52 -0800 Subject: [PATCH 3/4] bump version for further development --- cmake/mimalloc-config-version.cmake | 2 +- include/mimalloc.h | 2 +- test/test-stress.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cmake/mimalloc-config-version.cmake b/cmake/mimalloc-config-version.cmake index 60cc2d3d..527b1874 100644 --- a/cmake/mimalloc-config-version.cmake +++ b/cmake/mimalloc-config-version.cmake @@ -1,6 +1,6 @@ set(mi_version_major 3) set(mi_version_minor 0) -set(mi_version_patch 1) +set(mi_version_patch 2) set(mi_version ${mi_version_major}.${mi_version_minor}) set(PACKAGE_VERSION ${mi_version}) diff --git a/include/mimalloc.h b/include/mimalloc.h index 10695def..8b453247 100644 --- a/include/mimalloc.h +++ b/include/mimalloc.h @@ -8,7 +8,7 @@ terms of the MIT license. A copy of the license can be found in the file #ifndef MIMALLOC_H #define MIMALLOC_H -#define MI_MALLOC_VERSION 301 // major + 2 digits minor +#define MI_MALLOC_VERSION 302 // major + 2 digits minor // ------------------------------------------------------ // Compiler specific attributes diff --git a/test/test-stress.c b/test/test-stress.c index 1f66460f..fb27a786 100644 --- a/test/test-stress.c +++ b/test/test-stress.c @@ -261,9 +261,9 @@ static void test_stress(void) { #if !defined(NDEBUG) || defined(MI_TSAN) if ((n + 1) % 10 == 0) { printf("- iterations left: %3d\n", ITER - (n + 1)); - mi_debug_show_arenas(true); + mi_debug_show_arenas(); //mi_collect(true); - //mi_debug_show_arenas(true); + //mi_debug_show_arenas(); } #endif } From 1b5399c965d00901f0303d28d822d0589c190acb Mon Sep 17 00:00:00 2001 From: Daan Leijen Date: Sun, 5 Jan 2025 15:50:07 -0800 Subject: [PATCH 4/4] set default purge delay to 0 --- src/options.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/options.c b/src/options.c index c1144616..9fcc6ef3 100644 --- a/src/options.c +++ b/src/options.c @@ -144,7 +144,7 @@ static mi_option_desc_t options[_mi_option_last] = #else { 1, UNINIT, MI_OPTION(eager_commit_delay) }, // the first N segments per thread are not eagerly committed (but per page in the segment on demand) #endif - { 2500,UNINIT, MI_OPTION_LEGACY(purge_delay,reset_delay) }, // purge delay in milli-seconds + { 0, UNINIT, MI_OPTION_LEGACY(purge_delay,reset_delay) }, // purge delay in milli-seconds { 0, UNINIT, MI_OPTION(use_numa_nodes) }, // 0 = use available numa nodes, otherwise use at most N nodes. { 0, UNINIT, MI_OPTION_LEGACY(disallow_os_alloc,limit_os_alloc) }, // 1 = do not use OS memory for allocation (but only reserved arenas) { 100, UNINIT, MI_OPTION(os_tag) }, // only apple specific for now but might serve more or less related purpose