Skip to content

Commit

Permalink
restoring original comment
Browse files Browse the repository at this point in the history
  • Loading branch information
HattoriHanzo031 committed Sep 9, 2023
1 parent 27f42da commit 16f759a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/runtime/gc_blocks.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@ func (b gcBlock) address() uintptr {
return addr
}

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

Expand Down

0 comments on commit 16f759a

Please sign in to comment.