diff options
| author | Ian Lance Taylor <iant@golang.org> | 2022-02-04 21:14:13 -0800 |
|---|---|---|
| committer | Ian Lance Taylor <iant@golang.org> | 2022-02-05 06:14:58 +0000 |
| commit | d588f487703e773ba4a2f0a04f2d4141610bff6b (patch) | |
| tree | 9c3c1deefcf77c871dd6837670060d191a0de097 /src/runtime/symtab.go | |
| parent | 7c9885def52a408532085a566eea107f31ad1556 (diff) | |
| download | go-d588f487703e773ba4a2f0a04f2d4141610bff6b.tar.xz | |
runtime: change sys.PtrSize to goarch.PtrSize in comments
The code was updated, the comments were not.
Change-Id: If387779f3abd5e8a1b487fe34c33dcf9ce5fa7ff
Reviewed-on: https://go-review.googlesource.com/c/go/+/383495
Trust: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Diffstat (limited to 'src/runtime/symtab.go')
| -rw-r--r-- | src/runtime/symtab.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/symtab.go b/src/runtime/symtab.go index 21dd95a397..017b0a0749 100644 --- a/src/runtime/symtab.go +++ b/src/runtime/symtab.go @@ -863,7 +863,7 @@ type pcvalueCacheEnt struct { // pcvalueCacheKey returns the outermost index in a pcvalueCache to use for targetpc. // It must be very cheap to calculate. -// For now, align to sys.PtrSize and reduce mod the number of entries. +// For now, align to goarch.PtrSize and reduce mod the number of entries. // In practice, this appears to be fairly randomly and evenly distributed. func pcvalueCacheKey(targetpc uintptr) uintptr { return (targetpc / goarch.PtrSize) % uintptr(len(pcvalueCache{}.entries)) |
