()
| 155 | } |
| 156 | |
| 157 | func 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 |
| 176 | func panicChanStruct(x chan struct{}) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…