sync.Pool.Get (method)

41 uses

	sync (current package)
		pool.go#L131: func (p *Pool) Get() any {

	crypto/tls
		conn.go#L988: 	outBufPtr := outBufPool.Get().(*[]byte)

	encoding/json
		encode.go#L271: 	if v := encodeStatePool.Get(); v != nil {
		scanner.go#L94: 	scan := scannerPool.Get().(*scanner)

	fmt
		print.go#L152: 	p := ppFree.Get().(*pp)
		scan.go#L384: 	s = ssFree.Get().(*ss)

	internal/poll
		splice_linux.go#L206: 	v := splicePipePool.Get()

	io
		io.go#L663: 	bufp := blackHolePool.Get().(*[]byte)

	log
		log.go#L169: 	p := bufferPool.Get().(*[]byte)

	math/big
		nat.go#L629: 	if v := natPool.Get(); v != nil {

	net/http
		h2_bundle.go#L1059: 		return http2dataChunkPools[0].Get().(*[1 << 10]byte)[:]
		h2_bundle.go#L1061: 		return http2dataChunkPools[1].Get().(*[2 << 10]byte)[:]
		h2_bundle.go#L1063: 		return http2dataChunkPools[2].Get().(*[4 << 10]byte)[:]
		h2_bundle.go#L1065: 		return http2dataChunkPools[3].Get().(*[8 << 10]byte)[:]
		h2_bundle.go#L1067: 		return http2dataChunkPools[4].Get().(*[16 << 10]byte)[:]
		h2_bundle.go#L1636: 	bufp := http2fhBytes.Get().(*[]byte)
		h2_bundle.go#L3133: 	bp := http2littleBuf.Get().(*[]byte)
		h2_bundle.go#L3585: 		bw := http2bufWriterPool.Get().(*bufio.Writer)
		h2_bundle.go#L4963: 	ch := http2errChanPool.Get().(chan error)
		h2_bundle.go#L4964: 	writeArg := http2writeDataPool.Get().(*http2writeData)
		h2_bundle.go#L6158: 	rws := http2responseWriterStatePool.Get().(*http2responseWriterState)
		h2_bundle.go#L6273: 		errc = http2errChanPool.Get().(chan error)
		h2_bundle.go#L6635: 		sorter := http2sorterPool.Get().(*http2sorter)
		h2_bundle.go#L6961: 		done:   http2errChanPool.Get().(chan error),
		h2_bundle.go#L8932: 	if bp, ok := http2bufPools[index].Get().(*[]byte); ok && len(*bp) >= scratchLen {
		h2_bundle.go#L10798: 		sorter := http2sorterPool.Get().(*http2sorter)
		header.go#L168: 	hs = headerSorterPool.Get().(*headerSorter)
		request.go#L1048: 	if v := textprotoReaderPool.Get(); v != nil {
		server.go#L823: 	return copyBufPool.Get().(*[copyBufPoolSize]byte)[:]
		server.go#L852: 	if v := bufioReaderPool.Get(); v != nil {
		server.go#L888: 		if v := pool.Get(); v != nil {

	os
		dir_unix.go#L57: 		d.buf = dirBufPool.Get().(*[]byte)

	reflect
		value.go#L477: 			stackArgs = framePool.Get().(unsafe.Pointer)
		value.go#L970: 	methodFrame := methodFramePool.Get().(unsafe.Pointer)

	regexp
		backtrack.go#L50: 	b, ok := bitStatePool.Get().(*bitState)
		exec.go#L384: 	m, ok := onePassPool.Get().(*onePassMachine)
		regexp.go#L233: 	m, ok := matchPool[re.mpool].Get().(*machine)

	syscall
		netlink_linux.go#L84: 	rbNew := pageBufPool.Get().(*[]byte)

	vendor/golang.org/x/net/http2/hpack
		hpack.go#L513: 	buf := bufPool.Get().(*bytes.Buffer)
		huffman.go#L22: 	buf := bufPool.Get().(*bytes.Buffer)
		huffman.go#L33: 	buf := bufPool.Get().(*bytes.Buffer)