Files
wasmtime/crates
Peter Huene 3bb145f65c Only treat a memory as static when the minimum is also within bounds.
With the change to artificially limit unbounded memories based on Tunables,
it's possible to hit the assert where the minimum might exceed the static
memory bound.

This commit removes the assert in favor of a check to see if the minimum also
fits within the static memory bound. It also corrects the maximum bounding to
ensure the minimum between the memory's maximum and the configured maximum is
used.

If it does not fit, the memory will be treated as dynamic.  In the case of the
pooling instance allocator, the bounds will be checked again during translation
and an appropriate error will be returned as dynamic memories are not supported
for that allocator.
2021-03-04 18:18:51 -08:00
..
2021-03-01 16:39:20 -06:00
2021-03-04 18:17:03 -08:00
2021-03-04 18:17:03 -08:00
2021-03-04 18:17:03 -08:00
2021-03-01 16:39:20 -06:00
2021-03-04 18:17:03 -08:00
2021-03-04 18:17:03 -08:00
2021-03-04 18:17:03 -08:00
2021-03-04 18:17:03 -08:00
2021-03-04 18:17:03 -08:00
2021-03-04 18:17:03 -08:00
2021-03-04 18:17:03 -08:00
2021-03-04 18:17:03 -08:00
2021-03-04 18:17:03 -08:00
2021-03-04 18:17:03 -08:00
2021-03-04 18:17:03 -08:00