diff options
| author | hopehook <hopehook.com@gmail.com> | 2022-08-17 17:11:13 +0800 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2022-08-17 23:18:24 +0000 |
| commit | 9709d92bfaab7a9fb5350c102f46c8c9758e615d (patch) | |
| tree | a71be0b07990759e0cab96fe01c40de1edd21f1a /src/runtime | |
| parent | 87d6a9ff920e55b72ac7f35a85fcf6e448e2cbd7 (diff) | |
| download | go-9709d92bfaab7a9fb5350c102f46c8c9758e615d.tar.xz | |
runtime: gofmt -w -s
Change-Id: I1226ff66fd0c64984939793eb8ef96c08d030fa1
Reviewed-on: https://go-review.googlesource.com/c/go/+/424399
Reviewed-by: Robert Griesemer <gri@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
Auto-Submit: Michael Pratt <mpratt@google.com>
Run-TryBot: hopehook <hopehook@qq.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Diffstat (limited to 'src/runtime')
| -rw-r--r-- | src/runtime/mbitmap.go | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/runtime/mbitmap.go b/src/runtime/mbitmap.go index d454949926..1050a60468 100644 --- a/src/runtime/mbitmap.go +++ b/src/runtime/mbitmap.go @@ -477,12 +477,14 @@ func (h heapBits) next() (heapBits, uintptr) { // nextFast is like next, but can return 0 even when there are more pointers // to be found. Callers should call next if nextFast returns 0 as its second // return value. -// if addr, h = h.nextFast(); addr == 0 { -// if addr, h = h.next(); addr == 0 { -// ... no more pointers ... -// } -// } -// ... process pointer at addr ... +// +// if addr, h = h.nextFast(); addr == 0 { +// if addr, h = h.next(); addr == 0 { +// ... no more pointers ... +// } +// } +// ... process pointer at addr ... +// // nextFast is designed to be inlineable. // //go:nosplit |
