BryanCutler commented on a change in pull request #7753:
URL: https://github.com/apache/arrow/pull/7753#discussion_r496931942



##########
File path: python/pyarrow/jvm.py
##########
@@ -28,24 +28,45 @@
 import pyarrow as pa
 
 
-def jvm_buffer(arrowbuf):
+class _JvmBufferNanny:
+    """
+    An object that keeps a org.apache.arrow.memory.ArrowBuf's underlying
+    memory alive.
+    """
+    ref_manager = None

Review comment:
       Oh, ok. I think I was confused over having a local var `ref_manager` 
too. So why do you need a class attribute? Is it in case of an exception is 
thrown and the class instance doesn't get assigned?




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

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


Reply via email to