diff options
| author | Michael Pratt <mpratt@google.com> | 2022-07-14 17:36:59 -0400 |
|---|---|---|
| committer | Michael Pratt <mpratt@google.com> | 2022-08-12 01:38:55 +0000 |
| commit | bd302502d39b6172bf3db6abfa49fdcaa124ee50 (patch) | |
| tree | 3b5ad6d467a4f529f8416d6989c880a7f28d27d7 /src/runtime/symtab.go | |
| parent | 7666ec1c99b2f8c88b42fb5462510cafce120a6f (diff) | |
| download | go-bd302502d39b6172bf3db6abfa49fdcaa124ee50.tar.xz | |
runtime: convert panicking to atomic type
For #53821.
Change-Id: I93409f377881a3c029b41b0f1fbcef5e21091f2f
Reviewed-on: https://go-review.googlesource.com/c/go/+/419438
Reviewed-by: Austin Clements <austin@google.com>
Run-TryBot: Michael Pratt <mpratt@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Diffstat (limited to 'src/runtime/symtab.go')
| -rw-r--r-- | src/runtime/symtab.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/symtab.go b/src/runtime/symtab.go index 4a2d1d90ed..69190233a2 100644 --- a/src/runtime/symtab.go +++ b/src/runtime/symtab.go @@ -902,7 +902,7 @@ func pcvalue(f funcInfo, off uint32, targetpc uintptr, cache *pcvalueCache, stri } if !f.valid() { - if strict && panicking == 0 { + if strict && panicking.Load() == 0 { println("runtime: no module data for", hex(f.entry())) throw("no module data") } @@ -945,7 +945,7 @@ func pcvalue(f funcInfo, off uint32, targetpc uintptr, cache *pcvalueCache, stri // If there was a table, it should have covered all program counters. // If not, something is wrong. - if panicking != 0 || !strict { + if panicking.Load() != 0 || !strict { return -1, 0 } |
