File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 11/*
2- * Copyright (C) 2024 Intel Corporation
2+ * Copyright (C) 2024-2025 Intel Corporation
33 *
44 * Under the Apache License v2.0 with LLVM Exceptions. See LICENSE.TXT.
55 * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
@@ -19,8 +19,8 @@ static UTIL_ONCE_FLAG Page_size_is_initialized = UTIL_ONCE_FLAG_INIT;
1919static size_t Page_size ;
2020
2121void * ba_os_alloc (size_t size ) {
22- void * ptr = mmap (NULL , size , PROT_READ | PROT_WRITE ,
23- MAP_PRIVATE | MAP_ANONYMOUS , -1 , 0 );
22+ void * ptr = utils_mmap (NULL , size , PROT_READ | PROT_WRITE ,
23+ MAP_PRIVATE | MAP_ANONYMOUS , -1 , 0 );
2424 // this should be unnecessary but pairs of mmap/munmap do not reset
2525 // asan's user-poisoning flags, leading to invalid error reports
2626 // Bug 81619: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81619
@@ -29,7 +29,7 @@ void *ba_os_alloc(size_t size) {
2929}
3030
3131void ba_os_free (void * ptr , size_t size ) {
32- int ret = munmap (ptr , size );
32+ int ret = utils_munmap (ptr , size );
3333 assert (ret == 0 );
3434 (void )ret ; // unused
3535}
You can’t perform that action at this time.
0 commit comments