about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorDylan MacKenzie <ecstaticmorse@gmail.com>2018-06-26 21:59:43 -0700
committerDylan MacKenzie <ecstaticmorse@gmail.com>2018-07-04 14:36:07 -0700
commitb3b04b8cc6fb66b89613b4b636182b5de53a0601 (patch)
treec0d8c27d2099e210a6f487ce63e0cb2051247139 /src/rustllvm/RustWrapper.cpp
parent647ba29b90155e07cf569060d344242b3ee474eb (diff)
downloadrust-b3b04b8cc6fb66b89613b4b636182b5de53a0601.tar.gz
rust-b3b04b8cc6fb66b89613b4b636182b5de53a0601.zip
Avoid overflow in step counter
This removes the `usize` argument to `inc_step_counter`. Now, the step
counter increments by exactly one for every terminator evaluated. After
`STEPS_UNTIL_DETECTOR_ENABLED` steps elapse, the detector is run every
`DETECTOR_SNAPSHOT_PERIOD` steps. The step counter is only kept modulo
this period.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions