You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@pekko.apache.org by "pjfanning (via GitHub)" <gi...@apache.org> on 2025/08/07 21:54:53 UTC

[I] investigate use of sun.misc.Cleaner [pekko]

pjfanning opened a new issue, #2019:
URL: https://github.com/apache/pekko/issues/2019

   * this looks inefficient - the Java reflection code is rerun on every call to CleanDirectBuffer https://github.com/apache/pekko/blob/c11434abb42eb7273593bb307e7654e1c8fc8532/actor/src/main/scala/org/apache/pekko/io/DirectByteBufferPool.scala#L90 
   * sun.misc.Cleaner may only exist in Java 8 - see the way that this code uses sun.misc.Cleaner in Java 8 but uses sun.misc.Unsafe for Java 9+
       * https://github.com/apache/pinot/blob/584119fce06d47387e8b68a9eceb8493eebe7b02/pinot-segment-spi/src/main/java/org/apache/pinot/segment/spi/memory/CleanerUtil.java#L89
   * sun.misc.Unsafe has its own problems and we've on;y just managed to remove it from Pekko 2.0.0 code base


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For additional commands, e-mail: notifications-help@pekko.apache.org


Re: [I] investigate use of sun.misc.Cleaner [pekko]

Posted by "pjfanning (via GitHub)" <gi...@apache.org>.
pjfanning commented on issue #2019:
URL: https://github.com/apache/pekko/issues/2019#issuecomment-3197438191

   #2020 merged


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For additional commands, e-mail: notifications-help@pekko.apache.org


Re: [I] investigate use of sun.misc.Cleaner [pekko]

Posted by "pjfanning (via GitHub)" <gi...@apache.org>.
pjfanning closed issue #2019: investigate use of sun.misc.Cleaner
URL: https://github.com/apache/pekko/issues/2019


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For additional commands, e-mail: notifications-help@pekko.apache.org