diff options
Diffstat (limited to 'src/runtime/traceback.go')
| -rw-r--r-- | src/runtime/traceback.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/traceback.go b/src/runtime/traceback.go index 6df0bbfabe..96cf82c23e 100644 --- a/src/runtime/traceback.go +++ b/src/runtime/traceback.go @@ -1407,7 +1407,7 @@ func printOneCgoTraceback(pc uintptr, max int, arg *cgoSymbolizerArg) int { // callCgoSymbolizer calls the cgoSymbolizer function. func callCgoSymbolizer(arg *cgoSymbolizerArg) { call := cgocall - if panicking > 0 || getg().m.curg != getg() { + if panicking.Load() > 0 || getg().m.curg != getg() { // We do not want to call into the scheduler when panicking // or when on the system stack. call = asmcgocall @@ -1427,7 +1427,7 @@ func cgoContextPCs(ctxt uintptr, buf []uintptr) { return } call := cgocall - if panicking > 0 || getg().m.curg != getg() { + if panicking.Load() > 0 || getg().m.curg != getg() { // We do not want to call into the scheduler when panicking // or when on the system stack. call = asmcgocall |
