std: Make box annihilator work with newsched

This commit is contained in:
Brian Anderson
2013-06-22 01:09:06 -07:00
parent a09972db35
commit 5e7c5d6c3d
9 changed files with 102 additions and 132 deletions

View File

@@ -882,6 +882,12 @@ rust_delete_memory_region(memory_region *region) {
delete region;
}
extern "C" CDECL boxed_region*
rust_current_boxed_region() {
rust_task *task = rust_get_current_task();
return &task->boxed;
}
extern "C" CDECL boxed_region*
rust_new_boxed_region(memory_region *region,
uintptr_t poison_on_free) {