diff options
| author | Russ Cox <rsc@golang.org> | 2014-08-29 16:00:31 -0400 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2014-08-29 16:00:31 -0400 |
| commit | 9a75c748367c2ff84de355b136c33760a6b6928a (patch) | |
| tree | 0ec3266254b42c228fb02878440c2fa9645fd54d /src/pkg/runtime/malloc.go | |
| parent | 7f2e68e9822ce8736d66035d0a3ed3677c2db459 (diff) | |
| download | go-9a75c748367c2ff84de355b136c33760a6b6928a.tar.xz | |
runtime: include constants and defs_*_*.h types in generated Go defs
I had to rename Kevent and Sigaction to avoid the functions of the
same (lowercase) name.
LGTM=iant, r
R=golang-codereviews, r, iant, aram.h
CC=dvyukov, golang-codereviews, khr
https://golang.org/cl/140740043
Diffstat (limited to 'src/pkg/runtime/malloc.go')
| -rw-r--r-- | src/pkg/runtime/malloc.go | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/src/pkg/runtime/malloc.go b/src/pkg/runtime/malloc.go index e95bdbbf97..49afc67364 100644 --- a/src/pkg/runtime/malloc.go +++ b/src/pkg/runtime/malloc.go @@ -22,15 +22,13 @@ const ( pageSize = 1 << pageShift pageMask = pageSize - 1 - gcBits = 4 - wordsPerBitmapByte = 8 / gcBits - bitsPerPointer = 2 - bitsMask = 1<<bitsPerPointer - 1 - pointersPerByte = 8 / bitsPerPointer - bitPtrMask = bitsMask << 2 - maxGCMask = 64 - bitsDead = 0 - bitsPointer = 2 + bitsPerPointer = 2 + bitsMask = 1<<bitsPerPointer - 1 + pointersPerByte = 8 / bitsPerPointer + bitPtrMask = bitsMask << 2 + maxGCMask = 64 + bitsDead = 0 + bitsPointer = 2 bitBoundary = 1 bitMarked = 2 |
