-
Notifications
You must be signed in to change notification settings - Fork 14k
Open
Labels
A-maybe-future-editionSomething we may consider for a future edition.Something we may consider for a future edition.C-discussionCategory: Discussion or questions that doesn't represent real issues.Category: Discussion or questions that doesn't represent real issues.I-libs-api-nominatedNominated for discussion during a libs-api team meeting.Nominated for discussion during a libs-api team meeting.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Description
This serves as a place to discuss changing default lock types to their nonpoison versions, which has come up a number of times before but not yet (to my knowledge) discussed in depth.
@davepacheco brings up a good point at #134645 (comment) that having posioning locks tends to be a safer default, and that the .unwrap() annoyance could be smoothed with panicking methods rather than changing out the type.
I'm not sure whether or not an RFC would be required but considering the impact, it doesn't seem like a bad idea (see also rust-lang/rfcs#3550 for a similar change, though that involved lang).
Related:
- Tracking issue for adding the types: Tracking Issue for
sync_nonpoisonandnonpoison_{condvar,mutex,rwlock}#134645 - Tracking issue for the modules: Tracking Issue for
sync_poison_mod#134646
hawkw, FeldrinH, Sherlock-Holo, exrok, connortsui20 and 4 morebjorn3 and tmpolaczykFeldrinH, m4rch3n1ng and reddevilmidzy
Metadata
Metadata
Assignees
Labels
A-maybe-future-editionSomething we may consider for a future edition.Something we may consider for a future edition.C-discussionCategory: Discussion or questions that doesn't represent real issues.Category: Discussion or questions that doesn't represent real issues.I-libs-api-nominatedNominated for discussion during a libs-api team meeting.Nominated for discussion during a libs-api team meeting.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.