wee_alloc
wee_alloc copied to clipboard
Possible allocator memory corruption?
Describe the Bug
Unfortunately, I'm not sure. Using wee_alloc causes bugs in Bevy, suggesting a bug somewhere in the allocator.
Steps to Reproduce
See https://github.com/bevyengine/bevy/issues/3763
Expected Behavior
No memory corruption bugs.
Actual Behavior
Memory corruption.
it also seems to never actually free any memory and will eventually oom even with the most basic bevy app.

#[global_allocator]
static ALLOC: wee_alloc::WeeAlloc = wee_alloc::WeeAlloc::INIT;
#[wasm_bindgen]
pub fn run() {
App::new()
.add_plugins(DefaultPlugins)
.run();
}
using the default allocator works as expected
