Skip to content

Commit 16f759a

Browse files
restoring original comment
1 parent 27f42da commit 16f759a

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
@@ -123,6 +123,9 @@ func (b gcBlock) address() uintptr {
123123
return addr
124124
}
125125

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

0 commit comments

Comments
 (0)