diff --git a/src/api/vm.coffee b/src/api/vm.coffee index 24d8ed562..a1cadbe2a 100644 --- a/src/api/vm.coffee +++ b/src/api/vm.coffee @@ -413,6 +413,8 @@ set = $coroutine (params) -> if 'memoryMax' of params memoryMax = parseSize(params.memoryMax) + if memoryMax > VM.memory.static[1] + yield xapi.call 'VM.set_memory_static_max', memoryMax yield xapi.call 'VM.set_memory_static_max', ref, "#{memoryMax}" # Memory.