X-Git-Url: https://git.saurik.com/apple/javascriptcore.git/blobdiff_plain/b37bf2e156556c589aea3e1f58a377f2b1189665..fb8617cde5834786bd4e4afd579883e4acf5666e:/wtf/TCSystemAlloc.h diff --git a/wtf/TCSystemAlloc.h b/wtf/TCSystemAlloc.h index a4d14ed..1c67788 100644 --- a/wtf/TCSystemAlloc.h +++ b/wtf/TCSystemAlloc.h @@ -62,4 +62,14 @@ extern void* TCMalloc_SystemAlloc(size_t bytes, size_t *actual_bytes, // be released, partial pages will not.) extern void TCMalloc_SystemRelease(void* start, size_t length); +extern void TCMalloc_SystemCommit(void* start, size_t length); + +#if !HAVE(MADV_FREE_REUSE) && !HAVE(MADV_DONTNEED) && !HAVE(MMAP) && !HAVE(VIRTUALALLOC) +inline void TCMalloc_SystemRelease(void*, size_t) { } +#endif + +#if !HAVE(VIRTUALALLOC) && !HAVE(MADV_FREE_REUSE) +inline void TCMalloc_SystemCommit(void*, size_t) { } +#endif + #endif /* TCMALLOC_SYSTEM_ALLOC_H__ */