diff --git a/src/alloc-override.c b/src/alloc-override.c index 3c9a19c1..42c9f3d6 100644 --- a/src/alloc-override.c +++ b/src/alloc-override.c @@ -52,8 +52,7 @@ terms of the MIT license. A copy of the license can be found in the file MI_INTERPOSE_MI(realloc), MI_INTERPOSE_MI(free), MI_INTERPOSE_MI(strdup), - MI_INTERPOSE_MI(strndup), - MI_INTERPOSE_MI(realpath) + MI_INTERPOSE_MI(strndup) }; #else // On all other systems forward to our API @@ -62,8 +61,7 @@ terms of the MIT license. A copy of the license can be found in the file void* realloc(void* p, size_t newsize) mi_attr_noexcept MI_FORWARD2(mi_realloc, p, newsize); void free(void* p) mi_attr_noexcept MI_FORWARD0(mi_free, p); char* strdup(const char* s) MI_FORWARD1(mi_strdup, s); - char* strndup(const char* s, size_t n) MI_FORWARD2(mi_strndup, s, n); - char* realpath(const char* fname, char* resolved_name) MI_FORWARD2(mi_realpath, fname, resolved_name); + char* strndup(const char* s, size_t n) MI_FORWARD2(mi_strndup, s, n); #endif #if (defined(__GNUC__) || defined(__clang__)) && !defined(__MACH__) diff --git a/src/os.c b/src/os.c index 3d49d4a9..dbc2ad01 100644 --- a/src/os.c +++ b/src/os.c @@ -415,6 +415,7 @@ bool _mi_os_decommit(void* addr, size_t size, mi_stats_t* stats) { return mi_os_commitx(addr, size, false, stats); } + /* ----------------------------------------------------------- OS allocation using mmap/munmap ----------------------------------------------------------- */ diff --git a/src/segment.c b/src/segment.c index 8892662e..13cab17a 100644 --- a/src/segment.c +++ b/src/segment.c @@ -201,7 +201,6 @@ static void mi_segment_os_free(mi_segment_t* segment, size_t segment_size, mi_se #define MI_SEGMENT_CACHE_MAX (4) #define MI_SEGMENT_CACHE_FRACTION (8) - static mi_segment_t* mi_segment_cache_pop(size_t segment_size, mi_segments_tld_t* tld) { if (segment_size != 0 && segment_size != MI_SEGMENT_SIZE) return NULL; mi_segment_t* segment = tld->cache;