From 64770f642fe4b2f3af6f30d1e058e934e73d0b9b Mon Sep 17 00:00:00 2001 From: Austin Clements Date: Mon, 9 May 2016 11:29:34 -0400 Subject: [PATCH] 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 --- src/runtime/mheap.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/mheap.go b/src/runtime/mheap.go index 46b7048c40..4093288a7c 100644 --- a/src/runtime/mheap.go +++ b/src/runtime/mheap.go @@ -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 { -- 2.48.1