Commit 08a3a7c0 authored by Ian Lance Taylor's avatar Ian Lance Taylor

cmd/compile: update maxPtrmaskBytes comment for larger value

The comment for maxPtrmaskBytes implied that the value was still 16,
but that changed in CL 10815.

Change-Id: I86e304bc7d9d1a0a6b22b600fefcc1325e4372d9
Reviewed-on: https://go-review.googlesource.com/36120Reviewed-by: default avatarDavid Crawshaw <crawshaw@golang.org>
Reviewed-by: default avatarAustin Clements <austin@google.com>
parent 4aa7b142
...@@ -1572,14 +1572,13 @@ func dalgsym(t *Type) *Sym { ...@@ -1572,14 +1572,13 @@ func dalgsym(t *Type) *Sym {
// maxPtrmaskBytes is the maximum length of a GC ptrmask bitmap, // maxPtrmaskBytes is the maximum length of a GC ptrmask bitmap,
// which holds 1-bit entries describing where pointers are in a given type. // which holds 1-bit entries describing where pointers are in a given type.
// 16 bytes is enough to describe 128 pointer-sized words, 512 or 1024 bytes // Above this length, the GC information is recorded as a GC program,
// depending on the system. Above this length, the GC information is // which can express repetition compactly. In either form, the
// recorded as a GC program, which can express repetition compactly. // information is used by the runtime to initialize the heap bitmap,
// In either form, the information is used by the runtime to initialize the // and for large types (like 128 or more words), they are roughly the
// heap bitmap, and for large types (like 128 or more words), they are // same speed. GC programs are never much larger and often more
// roughly the same speed. GC programs are never much larger and often // compact. (If large arrays are involved, they can be arbitrarily
// more compact. (If large arrays are involved, they can be arbitrarily more // more compact.)
// compact.)
// //
// The cutoff must be large enough that any allocation large enough to // The cutoff must be large enough that any allocation large enough to
// use a GC program is large enough that it does not share heap bitmap // use a GC program is large enough that it does not share heap bitmap
......
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