about summary refs log tree commit diff
path: root/src/rt/rust.cpp
diff options
context:
space:
mode:
authorEric Holk <eholk@mozilla.com>2011-06-24 15:56:12 -0700
committerGraydon Hoare <graydon@mozilla.com>2011-06-28 16:12:33 -0700
commitc6d83248301b4aed366b9bef682d200381324c01 (patch)
tree12d0f6b3abed022825454c21d6fdfb60e81492f3 /src/rt/rust.cpp
parent1c852ac9c0d14b38bc956e3938256273980577b7 (diff)
downloadrust-c6d83248301b4aed366b9bef682d200381324c01.tar.gz
rust-c6d83248301b4aed366b9bef682d200381324c01.zip
There is only one domain per kernel now.
Diffstat (limited to 'src/rt/rust.cpp')
-rw-r--r--src/rt/rust.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/rt/rust.cpp b/src/rt/rust.cpp
index 093656b77d2..1de1685692d 100644
--- a/src/rt/rust.cpp
+++ b/src/rt/rust.cpp
@@ -96,8 +96,7 @@ rust_start(uintptr_t main_fn, int argc, char **argv, void* crate_map) {
     rust_srv *srv = new rust_srv();
     rust_kernel *kernel = new rust_kernel(srv);
     kernel->start();
-    rust_handle<rust_dom> *handle = kernel->create_domain("main");
-    rust_dom *dom = handle->referent();
+    rust_dom *dom = kernel->get_domain();
     command_line_args *args = new (dom) command_line_args(dom, argc, argv);
 
     DLOG(dom, dom, "startup: %d args in 0x%" PRIxPTR,
@@ -114,8 +113,6 @@ rust_start(uintptr_t main_fn, int argc, char **argv, void* crate_map) {
 
     int ret = dom->start_main_loops(num_threads);
     delete args;
-    kernel->destroy_domain(dom);
-    kernel->join_all_domains();
     delete kernel;
     delete srv;