mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-06 23:39:31 +03:00
Merge pull request #909 from kdrag0n/patch-1
Change macOS mmap tag to fix conflict with IOAccelerator
This commit is contained in:
commit
b5ef802313
1 changed files with 1 additions and 1 deletions
|
@ -248,7 +248,7 @@ static int unix_mmap_fd(void) {
|
||||||
#if defined(VM_MAKE_TAG)
|
#if defined(VM_MAKE_TAG)
|
||||||
// macOS: tracking anonymous page with a specific ID. (All up to 98 are taken officially but LLVM sanitizers had taken 99)
|
// macOS: tracking anonymous page with a specific ID. (All up to 98 are taken officially but LLVM sanitizers had taken 99)
|
||||||
int os_tag = (int)mi_option_get(mi_option_os_tag);
|
int os_tag = (int)mi_option_get(mi_option_os_tag);
|
||||||
if (os_tag < 100 || os_tag > 255) { os_tag = 100; }
|
if (os_tag < 100 || os_tag > 255) { os_tag = 254; }
|
||||||
return VM_MAKE_TAG(os_tag);
|
return VM_MAKE_TAG(os_tag);
|
||||||
#else
|
#else
|
||||||
return -1;
|
return -1;
|
||||||
|
|
Loading…
Add table
Reference in a new issue