diff options
Diffstat (limited to 'src/runtime')
| -rw-r--r-- | src/runtime/synctest.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/runtime/synctest.go b/src/runtime/synctest.go index 16af1209b4..529f69fd93 100644 --- a/src/runtime/synctest.go +++ b/src/runtime/synctest.go @@ -410,7 +410,9 @@ func getOrSetBubbleSpecial(p unsafe.Pointer, bubbleid uint64, add bool) (assoc i } else if add { // p is not associated with a bubble, // and we've been asked to add an association. + lock(&mheap_.speciallock) s := (*specialBubble)(mheap_.specialBubbleAlloc.alloc()) + unlock(&mheap_.speciallock) s.bubbleid = bubbleid s.special.kind = _KindSpecialBubble s.special.offset = offset |
