sync: unlocking an unlocked Mutex panics (should throw) #23039
Labels
FrozenDueToAge
NeedsDecision
Feedback is required from experts, contributors, and/or the community before a change can be made.
Milestone
What version of Go are you using (
go version
)?go version go1.9.2 darwin/amd64
go version devel +28736053ad Wed Dec 6 15:50:04 2017 +0000 darwin/amd64
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?darwin/amd64
, and the Go playgroundWhat did you do?
sync.Mutex
: https://play.golang.org/p/7MFt4Gn037sync.RWMutex
: https://play.golang.org/p/YWnu02fr4XWhat did you expect to see?
I expected unlocking an unlocked sync.Mutex to lead to an unrecoverable fatal error, as it did in Go 1.8 and as unlocking an unlocked sync.RWMutex does today.
What did you see instead?
A couple of calls to
throw
were converted topanic
calls as part of 0556e26, apparently unintentionally undoing a portion of 40d81cf.The text was updated successfully, but these errors were encountered: