mirror of
https://github.com/golang/go
synced 2024-11-19 18:04:40 -07:00
0fcf54b3d2
The garbage collector is now written in Go. There is plenty to clean up (just like on dev.cc). all.bash passes on darwin/amd64, darwin/386, linux/amd64, linux/386. TBR=rlh R=austin, rlh, bradfitz CC=golang-codereviews https://golang.org/cl/173250043
23 lines
500 B
C
23 lines
500 B
C
// Copyright 2012 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
// Used by cmd/gc.
|
|
|
|
enum {
|
|
gcBits = 4,
|
|
BitsPerPointer = 2,
|
|
BitsDead = 0,
|
|
BitsScalar = 1,
|
|
BitsPointer = 2,
|
|
BitsMask = 3,
|
|
PointersPerByte = 8/BitsPerPointer,
|
|
insData = 1,
|
|
insArray,
|
|
insArrayEnd,
|
|
insEnd,
|
|
|
|
// 64 bytes cover objects of size 1024/512 on 64/32 bits, respectively.
|
|
MaxGCMask = 65536, // TODO(rsc): change back to 64
|
|
};
|