use better byte buffer cleaner (#2020)

* use better byte buffer cleaner

* scalafmt

* Update ByteBufferCleaner.java

* Update actor/src/main/java/org/apache/pekko/io/ByteBufferCleaner.java

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update DirectByteBufferPool.scala

* method handle

* Create ByteBufferCleanerSpec.scala

* invokeExact

* Update ByteBufferCleaner.java

* test buffer cleaner at init time

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
PJ Fanning 2025-08-13 20:04:00 +01:00 committed by GitHub
parent e7e71a3adf
commit 96a84ca89b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 193 additions and 21 deletions

View file

@ -317,6 +317,11 @@ Copyright 2015 Ben Manes. All Rights Reserved.
---------------
pekko-actor contains code in `org.apache.pekko.io.ByteBufferCleaner` which was based on code
from Apache commons-io which was developed under the Apache 2.0 license.
---------------
pekko-cluster contains VectorClock.scala which is derived from code written
by Coda Hale <https://github.com/codahale/vlock>.
He has agreed to allow us to use this code under an Apache 2.0 license