Note that epoch-interrupts are safe against malicious guests (#4343)

* Note that epoch-interrupts are safe against malicious guests

* Remove implementation details from epoch deadline docs
This commit is contained in:
JMS55
2022-06-28 10:27:00 -07:00
committed by GitHub
parent baabd40b94
commit 27b94a4173

View File

@@ -425,6 +425,10 @@ impl Config {
/// signal handler), then we can ensure that all async code will
/// yield to the executor within a bounded time.
///
/// The deadline check cannot be avoided by malicious wasm code. It is safe
/// to use epoch deadlines to limit the execution time of untrusted
/// code.
///
/// The [`Store`](crate::Store) tracks the deadline, and controls
/// what happens when the deadline is reached during
/// execution. Several behaviors are possible: