diff options
Diffstat (limited to 'src/runtime/map.go')
| -rw-r--r-- | src/runtime/map.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/runtime/map.go b/src/runtime/map.go index 3f5817a577..273e315ea0 100644 --- a/src/runtime/map.go +++ b/src/runtime/map.go @@ -1422,3 +1422,10 @@ func reflectlite_maplen(h *hmap) int { const maxZero = 1024 // must match value in reflect/value.go:maxZero cmd/compile/internal/gc/walk.go:zeroValSize var zeroVal [maxZero]byte + +// mapinitnoop is a no-op function known the Go linker; if a given global +// map (of the right size) is determined to be dead, the linker will +// rewrite the relocation (from the package init func) from the outlined +// map init function to this symbol. Defined in assembly so as to avoid +// complications with instrumentation (coverage, etc). +func mapinitnoop() |
