mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
runtime: use conventional shift style for gcBitsChunkBytes
The convention for writing something like "64 kB" is 64<<10, since this is easier to read than 1<<16. Update gcBitsChunkBytes to follow this convention. Change-Id: I5b5a3f726dcf482051ba5b1814db247ff3b8bb2f Reviewed-on: https://go-review.googlesource.com/23132 Reviewed-by: Rick Hudson <rlh@golang.org>
This commit is contained in:
parent
30ded16596
commit
64770f642f
1 changed files with 1 additions and 1 deletions
|
|
@ -1243,7 +1243,7 @@ func freespecial(s *special, p unsafe.Pointer, size uintptr) {
|
|||
}
|
||||
}
|
||||
|
||||
const gcBitsChunkBytes = uintptr(1 << 16)
|
||||
const gcBitsChunkBytes = uintptr(64 << 10)
|
||||
const gcBitsHeaderBytes = unsafe.Sizeof(gcBitsHeader{})
|
||||
|
||||
type gcBitsHeader struct {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue