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 1
1
/*
2
- * Copyright (C) 2024 Intel Corporation
2
+ * Copyright (C) 2024-2025 Intel Corporation
3
3
*
4
4
* Under the Apache License v2.0 with LLVM Exceptions. See LICENSE.TXT.
5
5
* 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;
19
19
static size_t Page_size ;
20
20
21
21
void * 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 );
24
24
// this should be unnecessary but pairs of mmap/munmap do not reset
25
25
// asan's user-poisoning flags, leading to invalid error reports
26
26
// Bug 81619: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81619
@@ -29,7 +29,7 @@ void *ba_os_alloc(size_t size) {
29
29
}
30
30
31
31
void ba_os_free (void * ptr , size_t size ) {
32
- int ret = munmap (ptr , size );
32
+ int ret = utils_munmap (ptr , size );
33
33
assert (ret == 0 );
34
34
(void )ret ; // unused
35
35
}
You can’t perform that action at this time.
0 commit comments