diff options
| author | bors <bors@rust-lang.org> | 2013-10-05 15:41:35 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-10-05 15:41:35 -0700 |
| commit | bf416e7daf533fd4eb6f270da3ab965ac7422f05 (patch) | |
| tree | 34399950e063772b48aa29ea18ff7f61e38bcf08 /src/test/codegen/stack-alloc-string-slice.rs | |
| parent | 2733b189ac60cea541fbf80e5839e5027ffc9fbf (diff) | |
| parent | 1d19ad97871d22fb26a6ba0856d106546da8612d (diff) | |
| download | rust-bf416e7daf533fd4eb6f270da3ab965ac7422f05.tar.gz rust-bf416e7daf533fd4eb6f270da3ab965ac7422f05.zip | |
auto merge of #9713 : sfackler/rust/dynamic_lib, r=alexcrichton
The root issue is that dlerror isn't reentrant or even thread safe. The solution implemented here is to make a yielding spin lock over an AtomicFlag. This is pretty hacky, but the best we can do at this point. As far as I can tell, it isn't possible to create a global mutex without having to initialize it in a single threaded context. The Windows code isn't affected since errno is thread-local on Windows and it's running in an atomically block to ensure there isn't a green thread context switch. Closes #8156
Diffstat (limited to 'src/test/codegen/stack-alloc-string-slice.rs')
0 files changed, 0 insertions, 0 deletions
