Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/compile: incorrect escape reason for heap-allocated array with var len/cap #24578
The given reason for the escape ("too large for stack") is wrong. The same-sized allocation is put on the stack when the bound is a
The real reason for the escape is that we don't stack-allocate arrays when the len/cap is a variable.