-
-
Notifications
You must be signed in to change notification settings - Fork 15k
BinaryHeap is not exception safe #25842
Copy link
Copy link
Closed
Labels
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.
Metadata
Metadata
Assignees
Labels
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.
Type
Fields
Give feedbackNo fields configured for issues without a type.
BinaryHeap is using
zeroed()and may not be exception safe. I.e. it is in an inconsistent state after being recovered after panic. See issue #25662 and others.Relevant code is BinaryHeap::sift_up, sift_down_range
cc @cmr