Closed waldoweng closed 6 months ago
Hello, do you have any examples with panic related to this lib?
As far as I understand current issue with CGO. It's only possible to get a panic, if program makes allocation of uninitialized objects via malloc and shadows it with GO allocations. Usual example for it is slice resizing via append.
Related issue https://github.com/golang/go/issues/19928
@waldoweng , thanks for the fix!
…lloc,
See https://pkg.go.dev/cmd/cgo:
I also find similar approach use by Dgraph according to this blog post: https://dgraph.io/blog/post/manual-memory-management-golang-jemalloc/