Post

Mutex poisoning is not for everyone

A Rust developer argues that mutex poisoning should be opt-in, weighing its protection against partially updated state after a panic against code size, complexity, and overhead.

The article compares generated assembly for standard poisoning, ignoring poison errors, and nightly non-poisoning mutexes. These are illustrative code-size comparisons, not a general application benchmark. Lobsters readers debate whether an edition change could alter the default without breaking interoperability with older code.