]> git.lizzy.rs Git - rust.git/commit
Enable loop detector in step loop
authorDylan MacKenzie <ecstaticmorse@gmail.com>
Sun, 24 Jun 2018 19:46:23 +0000 (12:46 -0700)
committerDylan MacKenzie <ecstaticmorse@gmail.com>
Wed, 4 Jul 2018 21:36:07 +0000 (14:36 -0700)
commitc6aea935cf70bb79ed88dc891b517fc5130ab398
treebfa1d96ee90d79d4e9e8b6aa5baea32bea7bbe5f
parentf7e9d2ac3edf91403f2bd4879e0e8f6b9248adb2
Enable loop detector in step loop

The detector runs every `DETECTOR_SNAPSHOT_PERIOD` steps. Since the
number of steps can increase by more than 1 (I'd like to remove this),
the detector may fail if the step counter is incremented past the
scheduled detection point during the loop.
src/librustc_mir/interpret/eval_context.rs
src/librustc_mir/interpret/step.rs