Skip to content

Commit

Permalink
runtime: add comment to mgc0.h
Browse files Browse the repository at this point in the history
Missed that comment in CL 153990043.

LGTM=khr
R=khr
CC=golang-codereviews
https://golang.org/cl/156010043
  • Loading branch information
dvyukov committed Oct 9, 2014
1 parent e3727df commit f1c0899
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/runtime/mgc0.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ enum {
BitsMask = (1<<BitsPerPointer)-1,
PointersPerByte = 8/BitsPerPointer,

// If you change these, also change scanblock.
// scanblock does "if(bits == BitsScalar || bits == BitsDead)" as "if(bits <= BitsScalar)".
BitsDead = 0,
BitsScalar = 1,
BitsPointer = 2,
Expand Down

0 comments on commit f1c0899

Please sign in to comment.