mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2025-05-06 19:55:10 +00:00
vm: store exception stack in the context
Avoid allocating it.
This commit is contained in:
parent
d3198c3082
commit
ed35cf8f12
3 changed files with 5 additions and 4 deletions
|
@ -171,6 +171,7 @@ func initStack(s *Stack, n string, refc *refCounter) {
|
|||
s.refs = refc
|
||||
s.top.next = &s.top
|
||||
s.top.prev = &s.top
|
||||
s.len = 0
|
||||
}
|
||||
|
||||
// Clear clears all elements on the stack and set its length to 0.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue