Chris's Wiki :: blog/programming/GoRuntimeKeepAliveNotes Commentshttps://utcc.utoronto.ca/~cks/space/blog/programming/GoRuntimeKeepAliveNotes?atomcommentsDWiki2018-05-26T13:04:55ZRecent comments in Chris's Wiki :: blog/programming/GoRuntimeKeepAliveNotes.By Hilko Bengen on /blog/programming/GoRuntimeKeepAliveNotestag:CSpace:blog/programming/GoRuntimeKeepAliveNotes:d1d61a3c62f1d0816fe1b4f6cd2606d44adb113cHilko Bengen<div class="wikitext"><p>So far, I haven't seen the Go compiler optimize away functions that do nothing but "call" runtime.Keepalive(), although the only use-case I see for doing this is keeping compatibility with golang-go before 1.7, as in
<a href="https://github.com/hillu/go-yara/blob/master/keepalive_go17.go">https://github.com/hillu/go-yara/blob/master/keepalive_go17.go</a> vs. <a href="https://github.com/hillu/go-yara/blob/master/keepalive.go">https://github.com/hillu/go-yara/blob/master/keepalive.go</a></p>
</div>2018-05-26T13:04:55Z