You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@pekko.apache.org by GitBox <gi...@apache.org> on 2026/10/11 21:47:38 UTC
[GH] (pekko/stashbuffer-noinline): Workflow run "Scalafmt" failed!
The GitHub Actions job "Scalafmt" on pekko.git/stashbuffer-noinline has failed.
Run started by GitHub user pjfanning (triggered by pjfanning).
Head commit for run:
338a52673b2a79305e94385cd4cd3777e946f705 / PJ Fanning <pj...@users.noreply.github.com>
fix: keep StashBufferImpl instrumentation hooks from being inlined
Motivation:
StashBufferImpl's @InternalStableApi hooks (createNode, interpretUnstashedMessage,
unstashed, stashCleared) are meant for instrumentation agents, but the Scala 2.13
optimizer inlines them into their callers. The methods stay declared but are never
invoked, so advice attached to them silently never runs on 2.13.
Modification:
Mark the hooks @noinline, as GraphInterpreter.processPush already is, and add a
spec that reads the compiled class files and checks every hook still has a call site.
Result:
Instrumentation on the StashBufferImpl hooks runs on Scala 2.13 as well as Scala 3.
Tests:
- sbt "+actor-typed-tests/Test/testOnly org.apache.pekko.actor.typed.internal.StashBufferInstrumentationPointsSpec org.apache.pekko.actor.typed.scaladsl.StashBufferSpec" - passed on 2.13.18 and 3.3.8
- New spec fails on 2.13 without the fix (createNode, interpretUnstashedMessage, unstashed, stashCleared not invoked)
- sbt actor-typed/mimaReportBinaryIssues - no issues
References:
None - found while instrumenting stash in micrometer-pekko
Report URL: https://github.com/apache/pekko/actions/runs/38176981931
With regards,
GitHub Actions via GitBox
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For additional commands, e-mail: notifications-help@pekko.apache.org