Refactor lib.rs

This commit is contained in:
Yota Toyama committed 2019-04-14 06:00:11 +00:00
1 parent 8372c90cf8
commit 4d54e545f1
4 files changed
+7 -24

No files matched your search

+1 -4
View File
@@ -4,10 +4,7 @@ extern crate bdwgc_allocator;
static GLOBAL_ALLOCATOR: bdwgc_allocator::Allocator = bdwgc_allocator::Allocator;
fn main() {
unsafe {
bdwgc_allocator::Allocator::initialize();
bdwgc_allocator::Allocator::start_gc();
}
unsafe { bdwgc_allocator::Allocator::initialize() }
let mut _n = bdwgc_allocator::Allocator::alloc(2 ^ 8);