about summary refs log tree commit diff
path: root/src/rt/rust_builtin.cpp
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2013-08-09 23:35:51 -0700
committerBrian Anderson <banderson@mozilla.com>2013-08-16 13:24:25 -0700
commitda7d79dfbe46bf017e654598e481c6cc3a818af8 (patch)
tree87061a03757790b4b5443abbd013bcf86f2f01d7 /src/rt/rust_builtin.cpp
parent8861ba6159fb93839c9c7d778aa26f0316f6b717 (diff)
downloadrust-da7d79dfbe46bf017e654598e481c6cc3a818af8.tar.gz
rust-da7d79dfbe46bf017e654598e481c6cc3a818af8.zip
rt: Remove rust_stack
Diffstat (limited to 'src/rt/rust_builtin.cpp')
-rw-r--r--src/rt/rust_builtin.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/rt/rust_builtin.cpp b/src/rt/rust_builtin.cpp
index 080dae7d7af..c95a4737d17 100644
--- a/src/rt/rust_builtin.cpp
+++ b/src/rt/rust_builtin.cpp
@@ -681,6 +681,16 @@ rust_drop_env_lock() {
     env_lock.unlock();
 }
 
+extern "C" CDECL unsigned int
+rust_valgrind_stack_register(void *start, void *end) {
+  return VALGRIND_STACK_REGISTER(start, end);
+}
+
+extern "C" CDECL void
+rust_valgrind_stack_deregister(unsigned int id) {
+  VALGRIND_STACK_DEREGISTER(id);
+}
+
 //
 // Local Variables:
 // mode: C++