You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
go build --gcflags '-m -l' escape.go
# command-line-arguments
./escape.go:40:22: "bad test: " + h escapes to heap
./escape.go:44:37: "bad test (wrong length): " + h escapes to heap
./escape.go:37:21: parseHexString h does not escape
./escape.go:43:13: parseHexString pkt does not escape
./escape.go:28:23: make([]byte, packet.PacketSize) escapes to heap
./escape.go:22:11: test pkt does not escape
./escape.go:19:7: main &pkt does not escape
Solution options:
Use sync.Pool for pESHeader.data
Use copy of pesBytes for pESHeader.data
Something else?
The text was updated successfully, but these errors were encountered:
ZloyDyadka
changed the title
NewPESHeader cause memory escape
NewPESHeader causes memory escape
Oct 22, 2019
Version of go
Example:
Solution options:
The text was updated successfully, but these errors were encountered: