diff options
| author | Brian Anderson <banderson@mozilla.com> | 2013-01-13 16:53:13 -0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2013-02-06 14:27:36 -0800 |
| commit | e43c5bdc6b47e8dd5e2ddcd6cf57fec79388523a (patch) | |
| tree | 309c89fe29131346dc5e258e2dd948c381ec256d /src/rt/rust_kernel.h | |
| parent | e91040c704aa9ab46fb1c7a10e293fd5f6bfe079 (diff) | |
| download | rust-e43c5bdc6b47e8dd5e2ddcd6cf57fec79388523a.tar.gz rust-e43c5bdc6b47e8dd5e2ddcd6cf57fec79388523a.zip | |
Rewrite the exchange allocator to work without an active scheduler. #4457
Diffstat (limited to 'src/rt/rust_kernel.h')
| -rw-r--r-- | src/rt/rust_kernel.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/rt/rust_kernel.h b/src/rt/rust_kernel.h index c3d5a5a19bb..11af02dace4 100644 --- a/src/rt/rust_kernel.h +++ b/src/rt/rust_kernel.h @@ -45,11 +45,12 @@ #include <map> #include <vector> -#include "memory_region.h" +#include "rust_exchange_alloc.h" #include "rust_log.h" #include "rust_sched_reaper.h" #include "rust_type.h" #include "util/hash_map.h" +#include "sync/lock_and_signal.h" class rust_scheduler; class rust_sched_driver; @@ -71,7 +72,7 @@ struct exit_functions { }; class rust_kernel { - memory_region _region; + rust_exchange_alloc exchange_alloc; rust_log _log; // The next task id @@ -135,7 +136,7 @@ public: void *calloc(size_t size, const char *tag); void *realloc(void *mem, size_t size); void free(void *mem); - memory_region *region() { return &_region; } + rust_exchange_alloc *region() { return &exchange_alloc; } void fail(); |
