about summary refs log tree commit diff
path: root/src/rt/rust_kernel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/rt/rust_kernel.cpp')
-rw-r--r--src/rt/rust_kernel.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/rt/rust_kernel.cpp b/src/rt/rust_kernel.cpp
index a629f2ff4af..2a4315bd842 100644
--- a/src/rt/rust_kernel.cpp
+++ b/src/rt/rust_kernel.cpp
@@ -24,6 +24,13 @@ rust_kernel::rust_kernel(rust_env *env) :
     non_weak_tasks(0),
     env(env)
 {
+    // set up storage of pointers needed to
+    // access the global loop.
+    global_loop_chan = 0;
+    global_async_handle = (void**)::malloc( // FIXME -- can use this->malloc()
+        sizeof(void*));                   // .. what do?
+    *global_async_handle = (void*)0;
+
     // Create the single threaded scheduler that will run on the platform's
     // main thread
     rust_manual_sched_launcher_factory launchfac;