Explorar o código

Merge pull request #14513 from obscuren/allocate-stack

core/vm: allocate stack to 1024
Péter Szilágyi %!s(int64=8) %!d(string=hai) anos
pai
achega
b596b4ba5b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      core/vm/stack.go

+ 1 - 1
core/vm/stack.go

@@ -29,7 +29,7 @@ type Stack struct {
 }
 
 func newstack() *Stack {
-	return &Stack{}
+	return &Stack{data: make([]*big.Int, 0, 1024)}
 }
 
 func (st *Stack) Data() []*big.Int {