Stream: git-wasmtime

Topic: wasmtime / issue #3046 Changing `out_of_fuel_async_yield'...


view this post on Zulip Wasmtime GitHub notifications bot (Jun 30 2021 at 20:07):

bkolobara opened issue #3046:

I'm using the out_of_fuel_async_yield method on the Store to configure yielding back after around 10k instructions. I would like to allow the async call to run forever, but if I set injection_count to the maximum value u32::MAX of re-injections this gives me around 4*10^13 instructions in total. On a 4 Ghz processor I would run out of fuel in around 3 hours.

Should the injection_count type here be u64 or am I missing something?

view this post on Zulip Wasmtime GitHub notifications bot (Jul 01 2021 at 15:46):

alexcrichton closed issue #3046:

I'm using the out_of_fuel_async_yield method on the Store to configure yielding back after around 10k instructions. I would like to allow the async call to run forever, but if I set injection_count to the maximum value u32::MAX of re-injections this gives me around 4*10^13 instructions in total. On a 4 Ghz processor I would run out of fuel in around 3 hours.

Should the injection_count type here be u64 or am I missing something?


Last updated: Dec 23 2024 at 12:05 UTC