2012-09-12 10:08:27 -06:00
|
|
|
// 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.
|
|
|
|
|
2014-11-11 16:50:02 -07:00
|
|
|
// Used by cmd/gc.
|
2012-09-12 10:08:27 -06:00
|
|
|
|
|
|
|
enum {
|
2014-07-29 01:01:02 -06:00
|
|
|
gcBits = 4,
|
2014-11-11 16:50:02 -07:00
|
|
|
BitsPerPointer = 2,
|
|
|
|
BitsDead = 0,
|
|
|
|
BitsScalar = 1,
|
|
|
|
BitsPointer = 2,
|
|
|
|
BitsMask = 3,
|
|
|
|
PointersPerByte = 8/BitsPerPointer,
|
2014-07-29 01:01:02 -06:00
|
|
|
insData = 1,
|
|
|
|
insArray,
|
|
|
|
insArrayEnd,
|
|
|
|
insEnd,
|
2014-03-25 16:09:49 -06:00
|
|
|
|
2014-08-24 02:04:51 -06:00
|
|
|
// 64 bytes cover objects of size 1024/512 on 64/32 bits, respectively.
|
2014-10-30 08:16:03 -06:00
|
|
|
MaxGCMask = 65536, // TODO(rsc): change back to 64
|
2014-03-25 16:09:49 -06:00
|
|
|
};
|