Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Eliminate usage of releaseLater(...) to reduce memory usage during tests
Motiviation: We used ReferenceCountUtil.releaseLater(...) in our tests which simplifies a bit the releasing of ReferenceCounted objects. The problem with this is that while it simplifies stuff it increase memory usage a lot as memory may not be freed up in a timely manner. Modifications: - Deprecate releaseLater(...) - Remove usage of releaseLater(...) in tests. Result: Less memory needed to build netty while running the tests.
- Loading branch information
1 parent
a0e375b
commit 0bc30a1
Showing
36 changed files
with
1,222 additions
and
552 deletions.
There are no files selected for viewing
203 changes: 153 additions & 50 deletions
203
buffer/src/test/java/io/netty/buffer/AbstractByteBufTest.java
Large diffs are not rendered by default.
Oops, something went wrong.
382 changes: 260 additions & 122 deletions
382
buffer/src/test/java/io/netty/buffer/AbstractCompositeByteBufTest.java
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.