MCPcopy Create free account
hub / github.com/segmentio/encoding / noescape

Function noescape

json/codec.go:848–851  ·  view source on GitHub ↗

noescape hides a pointer from escape analysis. noescape is the identity function but escape analysis doesn't think the output depends on the input. noescape is inlined and currently compiles down to zero instructions. USE CAREFULLY! This was copied from the runtime; see issues 23382 and 7921. go:n

(p unsafe.Pointer)

Source from the content-addressed store, hash-verified

846//
847//go:nosplit
848func noescape(p unsafe.Pointer) unsafe.Pointer {
849 x := uintptr(p)
850 return unsafe.Pointer(x ^ 0)
851}
852
853func alignedSize(t reflect.Type) uintptr {
854 a := t.Align()

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…