]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: use conventional shift style for gcBitsChunkBytes
authorAustin Clements <austin@google.com>
Mon, 9 May 2016 15:29:34 +0000 (11:29 -0400)
committerAustin Clements <austin@google.com>
Mon, 16 May 2016 18:28:38 +0000 (18:28 +0000)
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>
src/runtime/mheap.go

index 46b7048c4092da4ed32e449c897fcf2d76f3888b..4093288a7cb382238bc806c03898f9337ebd324e 100644 (file)
@@ -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 {