You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "mbutrovich (via GitHub)" <gi...@apache.org> on 2026/04/13 18:07:41 UTC

Re: [PR] fix: share unified memory pools across native execution contexts within a task [datafusion-comet]

mbutrovich commented on code in PR #3924:
URL: https://github.com/apache/datafusion-comet/pull/3924#discussion_r3074900035


##########
native/core/src/execution/jni_api.rs:
##########
@@ -141,15 +141,33 @@ fn unregister_and_total(thread_id: u64, context_id: i64) -> usize {
             map.remove(&thread_id);
             return 0;
         }
-        return pools.values().map(|p| p.reserved()).sum::<usize>();
+        let mut seen = std::collections::HashSet::new();

Review Comment:
   Claude loves these fully qualified types. Do we need it?



-- 
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@datafusion.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org