forge
Explore
Log in

Don't you dare go Hollow

The bounded-pool test allows a small load-dependent growth between decodes (pool grows to busy+queued

Browse files at this commit

d552955ebff220bc2dbfc06696775d9a424a936fAhmet Kaan GümüşParent: f336d0c
  • test
    • the bounded-pool test allows a small load-dependent growth between decodes (pool grows to busy+queued
    • 9 -> 10 seen at load 62), keeps the structural bound
Show full message
test(av1): the bounded-pool test allows a small load-dependent growth between decodes (pool grows to busy+queued; 9 -> 10 seen at load 62), keeps the structural bound
crates/ec-av1/src/stream.rsmodified+5 -2
@@ -6408,8 +6408,11 @@ mod tests {
64086408 "{NAME}: the pool grew to {} threads at 4 frame / 4 filter / 2 recon",
64096409 counts[1]
64106410 );
6411- assert_eq!(
6412- counts[0], counts[1],
6411+ // The pool grows to `busy + queued`, so a loaded box can queue one
6412+ // more job than an idle one did (seen: 9 -> 10 at load 62). The
6413+ // bound above is the structural claim; here only a runaway counts.
6414+ assert!(
6415+ counts[1] <= counts[0] + 4,
64136416 "{NAME}: a second decode of the same stream grew the pool from {} to {} threads",
64146417 counts[0], counts[1]
64156418 );