about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-09-13 21:20:13 +0000
committerbors <bors@rust-lang.org>2022-09-13 21:20:13 +0000
commit2f1fa12659ac6b852a9dec46b79a0b02736f4e44 (patch)
treed4aff5aa053c6916728623863cd834b54d329d58 /src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs
parent7e66a9ff1690a7b4e0b46110350814ff8de251c9 (diff)
parentc8346376264ea99cafd6550b5b5f460cf82b326f (diff)
downloadrust-2f1fa12659ac6b852a9dec46b79a0b02736f4e44.tar.gz
rust-2f1fa12659ac6b852a9dec46b79a0b02736f4e44.zip
Auto merge of #2506 - pvdrz:a-really-bad-clock, r=saethlin
Make `sleep` work with isolation enabled

Implement a virtual monotone clock that can be used to track time while isolation is enabled. This virtual clock keeps an internal nanoseconds counter that will be increased by a fixed amount at the end of every basic block.

When a process sleeps, this clock will return immediately and increase the counter by the interval the process was supposed to sleep. Making miri execution faster than native code :trollface:.

cc `@RalfJung` `@saethlin` `@JakobDegen`
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs')
0 files changed, 0 insertions, 0 deletions