From bb0ad11252c493ca8de85025411c3f068f529039 Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Mon, 24 Sep 2012 13:57:48 -0700 Subject: rt: Call the Rust box annihilator; stop calling the cycle collector --- src/rt/rust.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/rt/rust.cpp') diff --git a/src/rt/rust.cpp b/src/rt/rust.cpp index 705a96303d4..dc28f624415 100644 --- a/src/rt/rust.cpp +++ b/src/rt/rust.cpp @@ -72,6 +72,8 @@ command_line_args : public kernel_owned // FIXME (#2670): This belongs somewhere else int check_claims = 0; +void* global_crate_map = NULL; + /** The runtime entrypoint. The (C ABI) main function generated by rustc calls `rust_start`, providing the address of the Rust ABI main function, the @@ -86,6 +88,8 @@ rust_start(uintptr_t main_fn, int argc, char **argv, void* crate_map) { // line as well. rust_env *env = load_env(); + global_crate_map = crate_map; + update_gc_metadata(crate_map); update_log_settings(crate_map, env->logspec); -- cgit 1.4.1-3-g733a5