summary refs log tree commit diff
path: root/src/rt/rust_cc.cpp
diff options
context:
space:
mode:
authorJon Morton <jonanin@gmail.com>2012-04-02 22:18:01 -0500
committerBrian Anderson <banderson@mozilla.com>2012-04-03 16:02:38 -0700
commit632a4c9326561de2bd9d9ded19a82f22678a0cf4 (patch)
treee5c5c509b2679cab824819c1d6340e44986d950d /src/rt/rust_cc.cpp
parent704ca046a13977175975cb20a77ea2fbac15d77a (diff)
downloadrust-632a4c9326561de2bd9d9ded19a82f22678a0cf4.tar.gz
rust-632a4c9326561de2bd9d9ded19a82f22678a0cf4.zip
Refactor includes structure, getting rid of rust_internal.h
Many changes to code structure are included:
- removed TIME_SLICE_IN_MS
- removed sychronized_indexed_list
- removed region_owned
- kernel_owned move to kernel.h, task_owned moved to task.h
- global configs moved to rust_globals.h
- changed #pragma once to standard guard in rust_upcall.h
- got rid of memory.h
Diffstat (limited to 'src/rt/rust_cc.cpp')
-rw-r--r--src/rt/rust_cc.cpp14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/rt/rust_cc.cpp b/src/rt/rust_cc.cpp
index b0a1804d096..41cc1684290 100644
--- a/src/rt/rust_cc.cpp
+++ b/src/rt/rust_cc.cpp
@@ -1,19 +1,17 @@
 // Rust cycle collector. Temporary, but will probably stick around for some
 // time until LLVM's GC infrastructure is more mature.
 
-#include "rust_debug.h"
-#include "rust_internal.h"
-#include "rust_shape.h"
-#include "rust_task.h"
-#include <cassert>
-#include <cstdio>
-#include <cstdlib>
 #include <map>
 #include <set>
 #include <vector>
-#include <stdint.h>
 #include <ios>
 
+#include "rust_globals.h"
+#include "rust_cc.h"
+#include "rust_debug.h"
+#include "rust_shape.h"
+#include "rust_task.h"
+
 // The number of allocations Rust code performs before performing cycle
 // collection.
 #define RUST_CC_FREQUENCY   5000