3 ms·
Eyra is a new implementation of libc in Rust that addresses this in its default configuration: "Eyra solves this by having setenv etc. just leak the old memory
by kibwen 3y ago
Eyra is a new implementation of libc in Rust that addresses this in its default configuration:
"Eyra solves this by having setenv etc. just leak the old memory. That ensures that it stays valid for as long as any thread needs it. Granted, leaking isn't great, and Eyra makes it configurable with the threadsafe-setenv cargo feature, so it can be disabled in favor of the thread-unsafe implementation. "
https://blog.sunfishcode.online/eyra-does-the-impossible/ https://blog.sunfishcode.online/eyra-does-the-impossible/
- deleted 3y ago[deleted]
- cryptonector 3y agoIt was never impossible. As TFA notes, Solaris/Illumos got it right 15 years ago.