Skip to content

Restore Cleaner API use for embedding cleanup#9260

Merged
headius merged 1 commit intojruby:masterfrom
headius:restore-embedding-cleaner
Feb 24, 2026
Merged

Restore Cleaner API use for embedding cleanup#9260
headius merged 1 commit intojruby:masterfrom
headius:restore-embedding-cleaner

Conversation

@headius
Copy link
Copy Markdown
Member

@headius headius commented Feb 24, 2026

This PR simply reverts a commit pushed to 9.4 and merged forward to 10 that switched from using the Java 9+ Cleaner API to a traditional finalizer. JRuby 10+ requires Java 21+ so we can use the Cleaner API and eliminate this use of finalization.

The original PR with the Cleaner API is here: #8561

A version of that PR that moves away from the Cleaner API is here: #8969

Because that #8969 includes the commit from #8561, the latter can't be rebased onto 10 (master) because git assumes it's the same commit and just drops it. The "cleaner" way to go back is to simply revert the commit that removed our use of the Cleaner API.

cc @matthias-fratz-bsz for review

@headius headius added this to the JRuby 10.0.4.0 milestone Feb 24, 2026
@headius headius merged commit f1c5ab7 into jruby:master Feb 24, 2026
79 checks passed
@headius headius deleted the restore-embedding-cleaner branch February 24, 2026 21:37
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.

1 participant