~maelkum/viuavm

4a526b6a794ac9136ea4df412d1261c325be0010 — Marek Marecki 1 year, 4 months ago 4f94a2f
Increase preemption threshold

Executing only two instructions at a time doesn't make much sense.
1 files changed, 1 insertions(+), 1 deletions(-)

M new/src/tools/exec/vm.cpp
M new/src/tools/exec/vm.cpp => new/src/tools/exec/vm.cpp +1 -1
@@ 115,7 115,7 @@ auto run(viua::vm::Process& proc) -> bool
                           << proc.pid.to_string() << viua::TRACE_STREAM.endl;
    }

    constexpr auto PREEMPTION_THRESHOLD = size_t{2};
    constexpr auto PREEMPTION_THRESHOLD = size_t{42};
    for (auto i = size_t{0}; i < PREEMPTION_THRESHOLD and ip_ok(); ++i) {
        /*
         * This is needed to detect greedy bundles and adjust preemption