Skip to content

Backport "Treat IINC to parameter locals as a write" to 3.10.1 - #27544

Merged
WojciechMazur merged 1 commit into
release-3.10.1from
release-3.10.1_backport-27316
Nov 10, 2026
Merged

WojciechMazur merged 1 commit into
release-3.10.1from
release-3.10.1_backport-27316

Conversation

@WojciechMazur

Copy link
Copy Markdown
Contributor

Backports #27316 to the 3.10.1-RC2.

PR submitted by the release tooling.

The inliner re-uses an existing local for a parameter of the callee,
unless the callee writes to it. An IINC write was not detected.

Port of scala/scala#11299. Here we have an integration test instead of a
unit test. On the Scala 2 side, the unit test crafts a method that uses
IINC (which scalac never emits) and then invokes the inliner. But here
we currently have no test infra to invoke the inliner manually.

LLM-assisted (Claude Code).

## Have you relied on LLM-based tools in this contribution?

Yes

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
[Cherry-picked 9f78b66]
@WojciechMazur
WojciechMazur merged commit d817240 into release-3.10.1 Nov 10, 2026
59 checks passed
@WojciechMazur
WojciechMazur deleted the release-3.10.1_backport-27316 branch November 10, 2026 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants