Commit c242fbc9 authored by Shenghou Ma's avatar Shenghou Ma Committed by Minux Ma

runtime: fix incorrectly replaced "_type" in comments

Change-Id: I9d0b1bb68604c5a153bd5c05c7008db045c38d2a
Reviewed-on: https://go-review.googlesource.com/3180Reviewed-by: default avatarIan Lance Taylor <iant@golang.org>
parent 19c1b163
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
// Runtime _type representation. // Runtime type representation.
package runtime package runtime
...@@ -17,13 +17,13 @@ type _type struct { ...@@ -17,13 +17,13 @@ type _type struct {
fieldalign uint8 fieldalign uint8
kind uint8 kind uint8
alg *typeAlg alg *typeAlg
// gc stores _type info required for garbage collector. // gc stores type info required for garbage collector.
// If (kind&KindGCProg)==0, then gc[0] points at sparse GC bitmap // If (kind&KindGCProg)==0, then gc[0] points at sparse GC bitmap
// (no indirection), 4 bits per word. // (no indirection), 4 bits per word.
// If (kind&KindGCProg)!=0, then gc[1] points to a compiler-generated // If (kind&KindGCProg)!=0, then gc[1] points to a compiler-generated
// read-only GC program; and gc[0] points to BSS space for sparse GC bitmap. // read-only GC program; and gc[0] points to BSS space for sparse GC bitmap.
// For huge _types (>maxGCMask), runtime unrolls the program directly into // For huge types (>maxGCMask), runtime unrolls the program directly into
// GC bitmap and gc[0] is not used. For moderately-sized _types, runtime // GC bitmap and gc[0] is not used. For moderately-sized types, runtime
// unrolls the program into gc[0] space on first use. The first byte of gc[0] // unrolls the program into gc[0] space on first use. The first byte of gc[0]
// (gc[0][0]) contains 'unroll' flag saying whether the program is already // (gc[0][0]) contains 'unroll' flag saying whether the program is already
// unrolled into gc[0] or not. // unrolled into gc[0] or not.
...@@ -31,7 +31,7 @@ type _type struct { ...@@ -31,7 +31,7 @@ type _type struct {
_string *string _string *string
x *uncommontype x *uncommontype
ptrto *_type ptrto *_type
zero *byte // ptr to the zero value for this _type zero *byte // ptr to the zero value for this type
} }
type method struct { type method struct {
...@@ -64,8 +64,8 @@ type maptype struct { ...@@ -64,8 +64,8 @@ type maptype struct {
typ _type typ _type
key *_type key *_type
elem *_type elem *_type
bucket *_type // internal _type representing a hash bucket bucket *_type // internal type representing a hash bucket
hmap *_type // internal _type representing a hmap hmap *_type // internal type representing a hmap
keysize uint8 // size of key slot keysize uint8 // size of key slot
indirectkey bool // store ptr to key instead of key itself indirectkey bool // store ptr to key instead of key itself
valuesize uint8 // size of value slot valuesize uint8 // size of value slot
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment