]> Cypherpunks repositories - gostls13.git/commit
runtime: add lock partial order edge for trace and wbufSpans and mheap
authorMichael Anthony Knyszek <mknyszek@google.com>
Tue, 10 May 2022 15:18:21 +0000 (15:18 +0000)
committerMichael Knyszek <mknyszek@google.com>
Tue, 10 May 2022 16:40:27 +0000 (16:40 +0000)
commit482669db62bc5b6537727d621555a46eccb6173d
tree287f49f29f2d0bc67bcc96b8d290858faf80f430
parent2226952b8a9564a83b29cb281238c5adac6c71b3
runtime: add lock partial order edge for trace and wbufSpans and mheap

This edge represents the case of executing a write barrier under the
trace lock: we might use the wbufSpans lock to get a new trace buffer,
or mheap to allocate a totally new one.

Fixes #52794.

Change-Id: Ia1ac2c744b8284ae29f4745373df3f9675ab1168
Reviewed-on: https://go-review.googlesource.com/c/go/+/405476
Run-TryBot: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
src/runtime/lockrank.go