MCPcopy Create free account
hub / github.com/maruel/panicparse / panicRace

Function panicRace

cmd/panic/main.go:157–173  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

155}
156
157func panicRace() {
158 if !raceEnabled {
159 panicRaceDisabled("race")
160 return
161 }
162 rerunWithFastCrash()
163
164 i := 0
165 // Do two separate calls so that the 'created at' stacks are different.
166 go func() {
167 panicDoRaceWrite(&i)
168 }()
169 go func() {
170 panicDoRaceRead(&i)
171 }()
172 time.Sleep(time.Minute)
173}
174
175//go:noinline
176func panicChanStruct(x chan struct{}) {

Callers

nothing calls this directly

Calls 4

panicRaceDisabledFunction · 0.85
rerunWithFastCrashFunction · 0.85
panicDoRaceWriteFunction · 0.85
panicDoRaceReadFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…