Skip to content

simplify scala.runtime.Statics.releaseFence#23953

Merged
sjrd merged 1 commit intoscala:mainfrom
xuwei-k:runtime-Statics-releaseFence
Sep 18, 2025
Merged

simplify scala.runtime.Statics.releaseFence#23953
sjrd merged 1 commit intoscala:mainfrom
xuwei-k:runtime-Statics-releaseFence

Conversation

@xuwei-k
Copy link
Copy Markdown
Contributor

@xuwei-k xuwei-k commented Sep 18, 2025

https://www.scala-lang.org/news/next-scala-lts-jdk.html

JDK 17 will be the new minimum version.

The runtime support is a bit complicated becausse we need to be cross
compatible with JDK 8 and 9+. We use method handle based reflection
to achieve this. This has zero runtime overhead in the manner used.

I think it's time to delete JDK 8 compatible reflection code.

@xuwei-k xuwei-k requested a review from a team as a code owner September 18, 2025 12:35
@sjrd sjrd requested a review from lrytz September 18, 2025 12:40
@sjrd sjrd enabled auto-merge September 18, 2025 13:31
@sjrd sjrd merged commit dfacd3f into scala:main Sep 18, 2025
50 checks passed
@xuwei-k xuwei-k deleted the runtime-Statics-releaseFence branch September 19, 2025 05:24
@WojciechMazur WojciechMazur added this to the 3.8.0 milestone Oct 28, 2025
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.

7 participants