You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/02/11 11:13:12 UTC

[GitHub] [arrow] projjal commented on a change in pull request #12351: ARROW-15598: [C++][Gandiva] Avoid using hardcoded raw pointer addresses in generated code

projjal commented on a change in pull request #12351:
URL: https://github.com/apache/arrow/pull/12351#discussion_r804556403



##########
File path: cpp/src/gandiva/annotator.h
##########
@@ -47,6 +47,13 @@ class GANDIVA_EXPORT Annotator {
   /// Returns the index of the bitmap in the list of local bitmaps.
   int AddLocalBitMap() { return local_bitmap_count_++; }
 
+  /// Add a pointer to function holder or in holder
+  /// Returns the index of the holder in the holder_pointers vector
+  int AddHolderPointer(void* holder);
+
+  /// Return a pointer to the underlying array containing the holder pointers
+  void** GetHolderPointersArray() { return holder_pointers_.data(); }

Review comment:
       Yes. This is only called during execution after expr decomposition when the holder pointers are added. Added a note in the comment explaining the same




-- 
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: github-unsubscribe@arrow.apache.org

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