]> git.lizzy.rs Git - rust.git/commit
Add miri infinite loop detection
authorDylan MacKenzie <ecstaticmorse@gmail.com>
Fri, 22 Jun 2018 07:46:29 +0000 (00:46 -0700)
committerDylan MacKenzie <ecstaticmorse@gmail.com>
Wed, 4 Jul 2018 21:36:07 +0000 (14:36 -0700)
commit7f9b01a0fc680943a5c37ee820ae3fbd6abc40f6
tree72b412453e3fe498bdcc77802bfc064507cfffd2
parent6c0f502fe6bb54b285d66850ca8171e0c98091b0
Add miri infinite loop detection

Use the approach suggested by @oli-obk, a table holding `EvalState`
hashes and a table holding full `EvalState` objects. When a hash
collision is observed, the state is cloned and put into the full
table. If the collision was not spurious, it will be detected during the
next iteration of the infinite loop.
src/librustc_mir/interpret/eval_context.rs
src/librustc_mir/interpret/step.rs