On tip, arguments of panic escape to heap

65 views
Skip to first unread message

tapi...@gmail.com

unread,
May 23, 2021, 3:43:12 AM5/23/21
to golang-nuts
Go 1.16 doesn't make this.
Is it nornal?

package main

func main(){
    panic("abc") // "abc" escapes to heap
}

Cuong Manh Le

unread,
May 23, 2021, 3:50:10 AM5/23/21
to tapi...@gmail.com, golang-nuts
Hi,

It's normal, go1.16 and before is just incorrect for not reporting that escaping. See: https://go-review.googlesource.com/c/go/+/284412

Cheers,
Cuong

--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/936dcc57-c507-402e-9811-4216c5d0f694n%40googlegroups.com.

tapi...@gmail.com

unread,
May 23, 2021, 4:26:36 AM5/23/21
to golang-nuts
got it.
Reply all
Reply to author
Forward
0 new messages