mirror of
https://github.com/bdwgc/bdwgc-rust.git
synced 2026-10-25 09:23:18 -06:00
Refactor lib.rs
This commit is contained in:
1 parent
8372c90cf8
commit
4d54e545f1
4 files changed
+7
-24
No files matched your search
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user