The code: 
https://github.com/golang/go/blob/cca23a73733ff166722c69359f0bb45e12ccaa2b/src/cmd/compile/internal/escape/escape.go#L2012-L2025

xxx > ir.MaxStackVarSize

xxx >= ir.MaxImplicitStackVarSize

This leads to the elements of a slice with size as ir.
MaxImplicitStackVarSize will be allocated on heap, but an array with size 
as ir.MaxStackVarSize will be allocated on stack.

Is this intended?



-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/af2eeb54-2d0c-4929-990a-dc64691073bcn%40googlegroups.com.

Reply via email to