]> git.lizzy.rs Git - rust.git/commit
std: Synchronize global allocator on wasm32
authorAlex Crichton <alex@alexcrichton.com>
Wed, 10 Oct 2018 03:18:10 +0000 (20:18 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Wed, 10 Oct 2018 06:35:45 +0000 (23:35 -0700)
commitc1f7e922e6e082d3f58db4a69fdf821e93ffa665
treeea9d965a6caf7b5afb25118ebf16b901695b2715
parenteae47a40484a085f699c3175d51e74901c607e65
std: Synchronize global allocator on wasm32

We originally didn't have threads, and now we're starting to add them!
Make sure we properly synchronize access to dlmalloc when the `atomics`
feature is enabled for `wasm32-unknown-unknown`.
src/liballoc_system/lib.rs