aboutsummaryrefslogtreecommitdiff
path: root/src/runtime
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2014-11-11 18:50:02 -0500
committerRuss Cox <rsc@golang.org>2014-11-11 18:50:02 -0500
commit8420df622aac7eef6734020a186eb6473ec3ce65 (patch)
tree12a589b4a7addc5072e6f3f705cd18826e093f68 /src/runtime
parent9204821731bfdcbef0bd4af0c4d40acde23ec7ab (diff)
downloadgo-8420df622aac7eef6734020a186eb6473ec3ce65.tar.xz
[dev.cc] runtime: bring back mgc0.h
This was recorded as an hg mv instead of an hg cp. For now a C version is needed for the Go compiler. TBR=r CC=golang-codereviews https://golang.org/cl/174020043
Diffstat (limited to 'src/runtime')
-rw-r--r--src/runtime/mgc0.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/runtime/mgc0.h b/src/runtime/mgc0.h
new file mode 100644
index 0000000000..62726b4f0f
--- /dev/null
+++ b/src/runtime/mgc0.h
@@ -0,0 +1,20 @@
+// 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,
+ MaxGCMask = 64,
+ insData = 1,
+ insArray,
+ insArrayEnd,
+ insEnd,
+};