Re: [go-nuts] Heap allocation found in function prolog

2020-11-17 Thread 'ju...@sqreen.com' via golang-nuts
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

[go-nuts] Heap allocation found in function prolog

2020-09-23 Thread 'ju...@sqreen.com' via golang-nuts
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