The Windows DLL loader lock: how a Rust thread can hang your JVM
10 points by jmillikin
10 points by jmillikin
Funnily enough, I'm working on switching Rust's thread local destructors on Windows to use a Fiber Local Storage-based impl (https://github.com/rust-lang/rust/pull/148799) which avoids the DLL loader lock issues - it's much harder than I imagined, but I think we can get this done!
God, I hate that lock.
Jaromir then stumbled upon JNA Issue #1479: Improper thread detaching causes deadlock in LDR on Windows 10+.
Does this mean that Windows 10 got worse somehow, or has Windows just always sucked, similar to things like using locking instead of deferred deletion when a user asks to delete an in-use file?