feat(vm.set): memoryMax increase static max if necessary

This commit is contained in:
Julien Fontanet 2016-05-24 14:32:14 +02:00
parent 436875f7dc
commit 4d7a07220c

View File

@ -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.