Skip to content

Commit bcfa5e8

Browse files
restoring original comment
1 parent bbbf759 commit bcfa5e8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/runtime/gc_blocks.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,9 @@ func (b gcBlock) address() uintptr {
125125
return addr
126126
}
127127

128+
// findHead returns the head (first block) of an object, assuming the block
129+
// points to an allocated object. It returns the same block if this block
130+
// already points to the head.
128131
func (b gcBlock) findHead() gcBlock {
129132
stateBytePtr := (*uint8)(unsafe.Add(metadataStart, b/blocksPerStateByte))
130133

0 commit comments

Comments
 (0)