feat(vm.set): memoryMax increase static max if necessary
This commit is contained in:
parent
436875f7dc
commit
4d7a07220c
@ -413,6 +413,8 @@ set = $coroutine (params) ->
|
|||||||
|
|
||||||
if 'memoryMax' of params
|
if 'memoryMax' of params
|
||||||
memoryMax = parseSize(params.memoryMax)
|
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}"
|
yield xapi.call 'VM.set_memory_static_max', ref, "#{memoryMax}"
|
||||||
|
|
||||||
# Memory.
|
# Memory.
|
||||||
|
Loading…
Reference in New Issue
Block a user