This commit is contained in:
Simon Gardling
2023-03-25 23:48:10 -04:00
parent caba881a95
commit b9367a7de8
3 changed files with 17 additions and 17 deletions

View File

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