Hello,
I was surprised to find a heap allocation in the following function prolog:
https://gist.github.com/Julio-Guerra/a3a2088832cd927669c08e1127e4c25a
Under what circumstances is this happening and it is possible to avoid it?
Thanks,
Julio
--
You received this message because you are subscri
Thanks for the hints, I could finally have a look at it and found that a
uint64 value was escaping regardless of the actual function code path. I
can reproduce it with this dummy function example:
func foo(cond bool, v int) *int {
if cond {
return &v
}
return nil
}
The comp