Skip to content

Commit 2599016

Browse files
committed
fix TSAN
1 parent c3e6efb commit 2599016

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

  • Include/internal/mimalloc/mimalloc
  • Objects/mimalloc

‎Include/internal/mimalloc/mimalloc/types.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ terms of the MIT license. A copy of the license can be found in the file
2222
// --------------------------------------------------------------------------
2323

2424

25-
#include <mimalloc-stats.h>
25+
#include "../mimalloc-stats.h"
2626
#include <stddef.h> // ptrdiff_t
2727
#include <stdint.h> // uintptr_t, uint16_t, etc
2828
#include <stdbool.h> // bool

‎Objects/mimalloc/os.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ static void* mi_os_prim_alloc_aligned(size_t size, size_t alignment, bool commit
276276
else {
277277
// if not aligned, free it, overallocate, and unmap around it
278278
#if !MI_TRACK_ASAN
279-
_mi_warning_message("unable to allocate aligned OS memory directly, fall back to over-allocation (size: 0x%zx bytes, address: %p, alignment: 0x%zx, commit: %d)\n", size, p, alignment, commit);
279+
_mi_verbose_message("unable to allocate aligned OS memory directly, fall back to over-allocation (size: 0x%zx bytes, address: %p, alignment: 0x%zx, commit: %d)\n", size, p, alignment, commit);
280280
#endif
281281
if (p != NULL) { mi_os_prim_free(p, size, (commit ? size : 0)); }
282282
if (size >= (SIZE_MAX - alignment)) return NULL; // overflow

0 commit comments

Comments
 (0)