Commit 1d88f9dd authored by Keith Randall's avatar Keith Randall

runtime: note the double-releasem isn't an error.

LGTM=bradfitz
R=dave, bradfitz
CC=golang-codereviews
https://golang.org/cl/136390043
parent 1fadd9e1
......@@ -134,6 +134,8 @@ func gomallocgc(size uintptr, typ *_type, flags int) unsafe.Pointer {
if mp.curg != nil {
mp.curg.stackguard0 = mp.curg.stackguard
}
// Note: one releasem for the acquirem just above.
// The other for the acquirem at start of malloc.
releasem(mp)
releasem(mp)
}
......@@ -309,6 +311,8 @@ marked:
if mp.curg != nil {
mp.curg.stackguard0 = mp.curg.stackguard
}
// Note: one releasem for the acquirem just above.
// The other for the acquirem at start of malloc.
releasem(mp)
releasem(mp)
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment