The GitHub Actions job "Nightly Builds (1.7)" on pekko.git/main has failed.
Run started by GitHub user pjfanning (triggered by pjfanning).

Head commit for run:
d75bf95017f4188ad861a04b721c00ee600d7388 / He-Pin(kerr) <[email protected]>
fix: keep lazy dispatch state on VarHandle (#3116)

Motivation:
PR #3035 used a VarHandle-backed volatile Int for LazyDispatch election state.
Review raised concern about the field and the VarHandle access semantics.

Modification:
Keep the VarHandle-backed Int state, but use explicit getVolatile/setVolatile
accessors with compareAndSet. This keeps the state in the LazyDispatch object
without per-instance AtomicInteger allocation while preserving conservative
volatile access semantics.

Result:
LazyDispatch keeps the same IDLE/SCHEDULED scheduling protocol with explicit
volatile state access.

Tests:
- scalafmt --mode diff-ref=origin/main --non-interactive
- scalafmt --list --mode diff-ref=origin/main --non-interactive
- sbt "+stream / compile"
- sbt "stream-tests / Test / testOnly 
org.apache.pekko.stream.scaladsl.StageActorRefSpec" (11/11)
- git diff --check

References:
Refs #3035

Report URL: https://github.com/apache/pekko/actions/runs/27923928877

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to