github.com/zach-klippenstein/go@v0.0.0-20150108044943-fcfbeb3adf58/src/runtime/mgc0.h (about)

     1  // Copyright 2012 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  // Used by cmd/gc.
     6  
     7  enum {
     8  	gcBits = 4,
     9  	BitsPerPointer = 2,
    10  	BitsDead = 0,
    11  	BitsScalar = 1,
    12  	BitsPointer = 2,
    13  	BitsMask = 3,
    14  	PointersPerByte = 8/BitsPerPointer,
    15  	insData = 1,
    16  	insArray,
    17  	insArrayEnd,
    18  	insEnd,
    19  
    20  	// 64 bytes cover objects of size 1024/512 on 64/32 bits, respectively.
    21  	MaxGCMask	= 65536, // TODO(rsc): change back to 64
    22  };