MCPcopy
hub / github.com/expr-lang/expr / memGrow

Method memGrow

vm/vm.go:687–692  ·  view source on GitHub ↗
(size uint)

Source from the content-addressed store, hash-verified

685}
686
687func (vm *VM) memGrow(size uint) {
688 vm.memory += size
689 if vm.memory >= vm.MemoryBudget {
690 panic("memory budget exceeded")
691 }
692}
693
694func (vm *VM) scope() *Scope {
695 return vm.Scopes[len(vm.Scopes)-1]

Callers 1

RunMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected