diff options
| author | Georgios Andreadis <g.andreadis@student.tudelft.nl> | 2020-05-20 15:59:54 +0200 |
|---|---|---|
| committer | Georgios Andreadis <g.andreadis@student.tudelft.nl> | 2020-05-20 15:59:54 +0200 |
| commit | 70ad01d793f88b1bef7d7988d24bff384ddbb3b9 (patch) | |
| tree | 10b4d6053d1cd58e921f71ff7b0d6f0cf7bab75a /odcsim | |
| parent | ee494d6ce6f817cf4e9ab0dba0d9f9f1987c0029 (diff) | |
| parent | 21eafd32c45495ab9e8ebbeffbdbe1d43ffe566b (diff) | |
Merge branch 'perf/batch-slices' into '2.x'
Batch VM slices
See merge request opendc/opendc-simulator!70
Diffstat (limited to 'odcsim')
| -rw-r--r-- | odcsim/odcsim-engine-omega/src/main/kotlin/com/atlarge/odcsim/engine/omega/OmegaSimulationEngine.kt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/odcsim/odcsim-engine-omega/src/main/kotlin/com/atlarge/odcsim/engine/omega/OmegaSimulationEngine.kt b/odcsim/odcsim-engine-omega/src/main/kotlin/com/atlarge/odcsim/engine/omega/OmegaSimulationEngine.kt index 0133832c..e675b877 100644 --- a/odcsim/odcsim-engine-omega/src/main/kotlin/com/atlarge/odcsim/engine/omega/OmegaSimulationEngine.kt +++ b/odcsim/odcsim-engine-omega/src/main/kotlin/com/atlarge/odcsim/engine/omega/OmegaSimulationEngine.kt @@ -126,6 +126,7 @@ public class OmegaSimulationEngine(override val name: String) : SimulationEngine * Schedule the specified event to be processed by the engine. */ private fun schedule(@Async.Schedule event: Event) { + assert(event.time >= clock.time) { "Message scheduled in the past [received=${event.time}, actual=${clock.time}]" } queue.add(event) } |
