change alloc

This commit is contained in:
Simon Gardling 2023-03-26 12:32:00 -04:00
parent e987069ba7
commit 372219198e

View File

@ -43,9 +43,9 @@ cfg_if::cfg_if! {
if #[cfg(target_arch = "wasm32")] {
use wasm_bindgen::prelude::*;
use lol_alloc::{FreeListAllocator, AssumeSingleThreaded};
use lol_alloc::{FreeListAllocator, LockedAllocator};
#[global_allocator]
static ALLOCATOR: AssumeSingleThreaded<FreeListAllocator> = unsafe { AssumeSingleThreaded::new(FreeListAllocator::new()) };
static ALLOCATOR: LockedAllocator<FreeListAllocator> = LockedAllocator::new(FreeListAllocator::new());
#[wasm_bindgen(start)]
pub async fn start() {