diff options
author | Péter Szilágyi <peterke@gmail.com> | 2017-05-25 18:22:56 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-25 18:22:56 +0800 |
commit | b596b4ba5b60c5ec047758df7c4598f21fb4dd5e (patch) | |
tree | ae621db12d87ac2a5d992c613dd714c2162a37e6 | |
parent | 8b1e4c4c5eae13f7eb4dfd4b9257b64a80ca17d5 (diff) | |
parent | 846d091bd25a9b3d0f6ed9c190d42027c682a045 (diff) | |
download | go-tangerine-b596b4ba5b60c5ec047758df7c4598f21fb4dd5e.tar.gz go-tangerine-b596b4ba5b60c5ec047758df7c4598f21fb4dd5e.tar.zst go-tangerine-b596b4ba5b60c5ec047758df7c4598f21fb4dd5e.zip |
Merge pull request #14513 from obscuren/allocate-stack
core/vm: allocate stack to 1024
-rw-r--r-- | core/vm/stack.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/vm/stack.go b/core/vm/stack.go index f4777c5b3..9c10d50ad 100644 --- a/core/vm/stack.go +++ b/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 { |