vibhatha commented on code in PR #37723:
URL: https://github.com/apache/arrow/pull/37723#discussion_r1439103984


##########
java/memory/memory-core/src/main/java/org/apache/arrow/memory/AllocationManager.java:
##########
@@ -48,8 +49,9 @@ public abstract class AllocationManager {
   // This is mostly a semantic constraint on the API user: if the reference 
count reaches 0 in the owningLedger, then
   // there are not supposed to be any references through other allocators. In 
practice, this doesn't do anything
   // as the implementation just forces ownership to be transferred to one of 
the other extant references.
-  private volatile BufferLedger owningLedger;
+  private volatile @Nullable BufferLedger owningLedger;

Review Comment:
   I think there is a point here. It could be initially non-null but after 
calling the state changes to null. So we could determine it as nullable? 
@danepitkin what do you think? 



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