src/runtime/hashmap: comments for iterator structure

Этот коммит содержится в:
Damian Gryski 2022-03-07 14:54:36 -08:00 коммит произвёл Ron Evans
родитель 6812a4dc04
коммит 9a8328fcb7

Просмотреть файл

@ -41,11 +41,11 @@ type hashmapBucket struct {
}
type hashmapIterator struct {
buckets unsafe.Pointer
numBuckets uintptr
bucketNumber uintptr
bucket *hashmapBucket
bucketIndex uint8
buckets unsafe.Pointer // pointer to array of hashapBuckets
numBuckets uintptr // length of buckets array
bucketNumber uintptr // current index into buckets array
bucket *hashmapBucket // current bucket in chain
bucketIndex uint8 // current index into bucket
}
// Get the topmost 8 bits of the hash, without using a special value (like 0).