Skip to content

Deprecate ObjectCleaner and remove usage#16685

Merged
normanmaurer merged 1 commit into
netty:4.2from
chrisvest:4.2-deprecate-objectcleaner
Apr 23, 2026
Merged

Deprecate ObjectCleaner and remove usage#16685
normanmaurer merged 1 commit into
netty:4.2from
chrisvest:4.2-deprecate-objectcleaner

Conversation

@chrisvest
Copy link
Copy Markdown
Member

Motivation:
FastThreadLocal doesn't use ObjectCleaner anymore, but tests make assertions on it, and occasionally fail.

Modification:
Remove FastThreadLocalTest tests that rely on ObjectCleaner. Deprecate ObjectCleaner.

Result:
No more test failures from those tests, and appropriately signal intent to remove ObjectCleaner.

Motivation:
FastThreadLocal doesn't use ObjectCleaner anymore, but tests make assertions on it, and occasionally fail.

Modification:
Remove FastThreadLocalTest tests that rely on ObjectCleaner.
Deprecate ObjectCleaner.

Result:
No more test failures from those tests, and appropriately signal intent to remove ObjectCleaner.
@chrisvest chrisvest added this to the 4.2.13.Final milestone Apr 22, 2026
@chrisvest chrisvest requested a review from normanmaurer April 22, 2026 20:56
@chrisvest chrisvest added needs-cherry-pick-5.0 This PR should be cherry-picked to 5.0 once merged. needs-cherry-pick-4.1 This PR should be cherry-picked to 4.1 once merged. labels Apr 22, 2026
@normanmaurer normanmaurer merged commit 94c8015 into netty:4.2 Apr 23, 2026
23 checks passed
@netty-project-bot
Copy link
Copy Markdown
Contributor

Could not create auto-port PR.
Got conflicts when cherry-picking onto 4.1.

@netty-project-bot
Copy link
Copy Markdown
Contributor

Auto-port PR for 5.0: #16686

@github-actions github-actions Bot removed the needs-cherry-pick-5.0 This PR should be cherry-picked to 5.0 once merged. label Apr 23, 2026
@chrisvest chrisvest deleted the 4.2-deprecate-objectcleaner branch April 23, 2026 16:30
normanmaurer pushed a commit that referenced this pull request Apr 23, 2026
Auto-port of #16685 to 5.0
Cherry-picked commit: 94c8015

---
Motivation:
FastThreadLocal doesn't use ObjectCleaner anymore, but tests make
assertions on it, and occasionally fail.

Modification:
Remove FastThreadLocalTest tests that rely on ObjectCleaner. Deprecate
ObjectCleaner.

Result:
No more test failures from those tests, and appropriately signal intent
to remove ObjectCleaner.

Co-authored-by: Chris Vest <[email protected]>
@chrisvest
Copy link
Copy Markdown
Member Author

4.1 port #16694

@chrisvest chrisvest removed the needs-cherry-pick-4.1 This PR should be cherry-picked to 4.1 once merged. label Apr 23, 2026
chrisvest added a commit that referenced this pull request Apr 23, 2026
Motivation:
FastThreadLocal doesn't use ObjectCleaner anymore, but tests make
assertions on it, and occasionally fail.

Modification:
Remove FastThreadLocalTest tests that rely on ObjectCleaner. Deprecate
ObjectCleaner.

Result:
No more test failures from those tests, and appropriately signal intent
to remove ObjectCleaner.

(cherry picked from commit 94c8015)
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.

3 participants