X-Git-Url: https://git.llucax.com/software/dgc/cdgc.git/blobdiff_plain/ec73552782f845e080e7c46324201351f7df30f2..28078ce1ede1d2b4535e9f44bde1466c4912a910:/gc/alloc.d?ds=inline diff --git a/gc/alloc.d b/gc/alloc.d index 9c6d249..f7970da 100644 --- a/gc/alloc.d +++ b/gc/alloc.d @@ -155,32 +155,6 @@ else static if (is(typeof(mmap)) && is(typeof(MAP_ANON))) return munmap(base, nbytes); } } -else static if (is(typeof(valloc))) -{ - void *os_mem_map(size_t nbytes) - { - return valloc(nbytes); - } - - - int os_mem_commit(void *base, size_t offset, size_t nbytes) - { - return 0; - } - - - int os_mem_decommit(void *base, size_t offset, size_t nbytes) - { - return 0; - } - - - int os_mem_unmap(void *base, size_t nbytes) - { - free(base); - return 0; - } -} else static if (is(typeof(malloc))) { // NOTE: This assumes malloc granularity is at least (void*).sizeof. If