The GitHub Actions job "Pull Requests" on pekko.git/optimize-stage-actor-ref-lazy-dispatch has failed. Run started by GitHub user He-Pin (triggered by He-Pin).
Head commit for run: 2162e44bfd11f63b22d901939b7e91a4aab7533d / He-Pin <[email protected]> fix: type-witness VarHandle.get for Scala 3 cross-compile Motivation: The previous commit re-introduced VarHandle in LazyDispatch to avoid per-instance AtomicInteger overhead, but Scala 3's strict inference cannot pick the Int-returning signature-polymorphic overload of VarHandle.get without explicit return-type context, breaking the Binary Compatibility and Tests (3.3.x) jobs on PR #3035 with "Values of types Object and Int cannot be compared with == or !=" at GraphStage.scala:391. Modification: Read the state through a typed local (val cur: Int = u.get(this)) so the call site witnesses the Int-returning overload. Compiles on both Scala 2.13 and Scala 3.3. Keeps the VarHandle (no per-instance AtomicInteger) and the double-checked plain-read fast path under producer contention. Result: Scala 2.13 + Scala 3.3 compile clean, stream/mimaReportBinaryIssues passes, scalafmt unchanged, StageActorRefSpec 11/11 green. Report URL: https://github.com/apache/pekko/actions/runs/26865772477 With regards, GitHub Actions via GitBox --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
