Update to go1.24.0

This commit is contained in:
Vorapol Rinsatitnon
2025-02-14 12:42:07 +07:00
parent 25e497e367
commit bf266cebe6
3169 changed files with 236789 additions and 60275 deletions

View File

@@ -524,10 +524,11 @@ func traceAdvance(stopTrace bool) {
// trace.lock needed for traceBufFlush, but also to synchronize
// with traceThreadDestroy, which flushes both buffers unconditionally.
lock(&trace.lock)
bufp := &mp.trace.buf[gen%2]
if *bufp != nil {
traceBufFlush(*bufp, gen)
*bufp = nil
for exp, buf := range mp.trace.buf[gen%2] {
if buf != nil {
traceBufFlush(buf, gen)
mp.trace.buf[gen%2][exp] = nil
}
}
unlock(&trace.lock)