]> git.lizzy.rs Git - rust.git/commit
std: Spin for a global malloc lock on wasm32
authorAlex Crichton <alex@alexcrichton.com>
Fri, 1 Mar 2019 19:47:06 +0000 (11:47 -0800)
committerAlex Crichton <alex@alexcrichton.com>
Tue, 5 Mar 2019 15:42:17 +0000 (07:42 -0800)
commit72958acd57fb32e0f8027c0d7e76c9a0c7f155d2
tree7dc0878e9eca020d4016ce8cdab57e6f742826fd
parent1999a2288123173b2e487865c9a04386173025f7
std: Spin for a global malloc lock on wasm32

There's lots of comments in the code, but the main gist of this commit
is that the acquisition of the global malloc lock on the
`wasm32-unknown-unknown` target when threads are enabled will not spin
on contention rather than block.
src/libstd/sys/wasm/alloc.rs