From 4c0d41cffae78725c20a40302e81ef1246c3e4c7 Mon Sep 17 00:00:00 2001 From: Michael Sullivan Date: Wed, 13 Jun 2012 17:59:21 -0700 Subject: Add a malloc_dyn upcall for dynamically sized allocations on the shared heap. --- src/rt/rust_kernel.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/rt/rust_kernel.cpp') diff --git a/src/rt/rust_kernel.cpp b/src/rt/rust_kernel.cpp index 4451f362f27..dc743aceef8 100644 --- a/src/rt/rust_kernel.cpp +++ b/src/rt/rust_kernel.cpp @@ -62,6 +62,11 @@ rust_kernel::malloc(size_t size, const char *tag) { return _region.malloc(size, tag); } +void * +rust_kernel::calloc(size_t size, const char *tag) { + return _region.calloc(size, tag); +} + void * rust_kernel::realloc(void *mem, size_t size) { return _region.realloc(mem, size); -- cgit 1.4.1-3-g733a5