Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
runtime: remove unnecessary allocations in convT2E #8892
This was at lengths discussed in: https://golang.org/issue/8405 and previously on golang-dev: https://groups.google.com/d/msg/golang-dev/pwUh0BVFpY0/zqJInvU3NkQJ Namely, we should allocate heap block for scalars iff the scalar look like a pointer into heap (otherwise GC will ignore it anyway). This will allow to have 1-bit/word GC pointer type info *and* don't allocate additional memory for scalars in interfaces in most cases.