mirror of
https://github.com/golang/go
synced 2024-11-13 17:30:24 -07: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
@ -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…
Reference in New Issue
Block a user