Skip to content

Commit 64770f6

Browse files
committed
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 <[email protected]>
1 parent 30ded16 commit 64770f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/mheap.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1243,7 +1243,7 @@ func freespecial(s *special, p unsafe.Pointer, size uintptr) {
12431243
}
12441244
}
12451245

1246-
const gcBitsChunkBytes = uintptr(1 << 16)
1246+
const gcBitsChunkBytes = uintptr(64 << 10)
12471247
const gcBitsHeaderBytes = unsafe.Sizeof(gcBitsHeader{})
12481248

12491249
type gcBitsHeader struct {

0 commit comments

Comments
 (0)