Skip to content

Commit f1c0899

Browse files
committed
runtime: add comment to mgc0.h
Missed that comment in CL 153990043. LGTM=khr R=khr CC=golang-codereviews https://golang.org/cl/156010043
1 parent e3727df commit f1c0899

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/runtime/mgc0.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ enum {
4242
BitsMask = (1<<BitsPerPointer)-1,
4343
PointersPerByte = 8/BitsPerPointer,
4444

45+
// If you change these, also change scanblock.
46+
// scanblock does "if(bits == BitsScalar || bits == BitsDead)" as "if(bits <= BitsScalar)".
4547
BitsDead = 0,
4648
BitsScalar = 1,
4749
BitsPointer = 2,

0 commit comments

Comments
 (0)