MCPcopy Create free account
hub / github.com/aclements/go-misc / pcvalueCacheKey

Function pcvalueCacheKey

pcvaluetab/symtab.go:212–214  ·  view source on GitHub ↗

pcvalueCacheKey returns the outermost index in a pcvalueCache to use for targetpc. It must be very cheap to calculate. For now, align to goarch.PtrSize and reduce mod the number of entries. In practice, this appears to be fairly randomly and evenly distributed.

(targetpc uintptr)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

lookupVarintPCDataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected