mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-01 17:24:38 +03:00
bump version to 3.0.6
This commit is contained in:
parent
0f2cc25572
commit
6be28eda6e
3 changed files with 3 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
||||||
set(mi_version_major 3)
|
set(mi_version_major 3)
|
||||||
set(mi_version_minor 0)
|
set(mi_version_minor 0)
|
||||||
set(mi_version_patch 5)
|
set(mi_version_patch 6)
|
||||||
set(mi_version ${mi_version_major}.${mi_version_minor})
|
set(mi_version ${mi_version_major}.${mi_version_minor})
|
||||||
|
|
||||||
set(PACKAGE_VERSION ${mi_version})
|
set(PACKAGE_VERSION ${mi_version})
|
||||||
|
|
|
@ -8,7 +8,7 @@ terms of the MIT license. A copy of the license can be found in the file
|
||||||
#ifndef MIMALLOC_H
|
#ifndef MIMALLOC_H
|
||||||
#define MIMALLOC_H
|
#define MIMALLOC_H
|
||||||
|
|
||||||
#define MI_MALLOC_VERSION 305 // major + 2 digits minor
|
#define MI_MALLOC_VERSION 306 // major + 2 digits minor
|
||||||
|
|
||||||
// ------------------------------------------------------
|
// ------------------------------------------------------
|
||||||
// Compiler specific attributes
|
// Compiler specific attributes
|
||||||
|
|
|
@ -316,7 +316,7 @@ static bool mi_page_map_set_range_prim(mi_page_t* page, size_t idx, size_t sub_i
|
||||||
|
|
||||||
static bool mi_page_map_set_range(mi_page_t* page, size_t idx, size_t sub_idx, size_t slice_count) {
|
static bool mi_page_map_set_range(mi_page_t* page, size_t idx, size_t sub_idx, size_t slice_count) {
|
||||||
if mi_unlikely(!mi_page_map_set_range_prim(page,idx,sub_idx,slice_count)) {
|
if mi_unlikely(!mi_page_map_set_range_prim(page,idx,sub_idx,slice_count)) {
|
||||||
// failed to commit, call again to reset the page pointer if needed
|
// failed to commit, call again to reset the page pointer (if needed)
|
||||||
if (page!=NULL) {
|
if (page!=NULL) {
|
||||||
mi_page_map_set_range_prim(NULL,idx,sub_idx,slice_count);
|
mi_page_map_set_range_prim(NULL,idx,sub_idx,slice_count);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue