panbingkun commented on code in PR #39266:
URL: https://github.com/apache/arrow/pull/39266#discussion_r1433651593


##########
java/memory/memory-netty/src/main/java/io/netty/buffer/PooledByteBufAllocatorL.java:
##########
@@ -166,7 +163,7 @@ private UnsafeDirectLittleEndian newDirectBufferL(int 
initialCapacity, int maxCa
 
       if (directArena != null) {
 
-        if (initialCapacity > directArena.chunkSize) {
+        if (initialCapacity > chunkSize()) {

Review Comment:
   The value of `directArena.chunkSize` is actually equal to `chunkSize()`, and 
it is a final.



-- 
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