golang / go

The Go programming language
https://go.dev
BSD 3-Clause "New" or "Revised" License
124.14k stars 17.69k forks source link

runtime: store explicit race context in G struct #4286

Closed dvyukov closed 9 years ago

dvyukov commented 12 years ago
Currently race detector uses goroutine id (g->goid) to find goroutine context. It is
slow and imposes limit on total number of goroutines.

Store explicit race context in G struct.
dvyukov commented 11 years ago

Comment 1:

This issue was closed by revision 0a40cd2661a14baa9a57b4f5af84494455d83f8.

Status changed to Fixed.