about summary refs log tree commit diff
path: root/src/rt/rust_kernel.cpp
diff options
context:
space:
mode:
authorMichael Sullivan <sully@msully.net>2012-06-13 17:59:21 -0700
committerMichael Sullivan <sully@msully.net>2012-06-13 17:59:21 -0700
commit4c0d41cffae78725c20a40302e81ef1246c3e4c7 (patch)
tree22bc0c98ad81612eff343237e5cc8d529e552f49 /src/rt/rust_kernel.cpp
parent31f4b63dffb49e65d3de4ecbef573e15b0f44e36 (diff)
downloadrust-4c0d41cffae78725c20a40302e81ef1246c3e4c7.tar.gz
rust-4c0d41cffae78725c20a40302e81ef1246c3e4c7.zip
Add a malloc_dyn upcall for dynamically sized allocations on the shared heap.
Diffstat (limited to 'src/rt/rust_kernel.cpp')
-rw-r--r--src/rt/rust_kernel.cpp5
1 files changed, 5 insertions, 0 deletions
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
@@ -63,6 +63,11 @@ rust_kernel::malloc(size_t size, const char *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);
 }