compiler: move allocations > 256 bytes to the heap

This commit is contained in:
Damian Gryski
2022-02-10 19:28:34 -08:00
committed by Ron Evans
parent f2fef290c9
commit 4b2edc9a26
2 changed files with 4 additions and 2 deletions
+1
View File
@@ -18,6 +18,7 @@ import (
// always be heap allocated.
//
// TODO: tune this, this is just a random value.
// This value is also used in the compiler when translating ssa.Alloc nodes.
const maxStackAlloc = 256
// OptimizeAllocs tries to replace heap allocations with stack allocations