Shoothzj opened a new pull request, #15238:
URL: https://github.com/apache/pulsar/pull/15238

   ### Motivation
   - `PlatformDependent.maxDirectMemory()` can be inaccurate if 
`io.netty.maxDirectMemory` are setted
   - Bookkeeper's `DirectMemoryUtils` is not worked within some jdk releases.
   In netty 4.1.75, they introduced a new method 
`PlatformDependent.estimateMaxDirectMemory` to help users get maxDirectMemory. 
Since netty's this method works well on many jdk releases, use this to replace 
below two.
   PS: `DirectMemoryUtils` has been removed from bookkeeper in 
https://github.com/apache/bookkeeper/pull/2989
   ### Modifications
   - use `PlatformDependent.estimateMaxDirectMemory` instead


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to