DenisTarasyuk commented on PR #41497:
URL: https://github.com/apache/arrow/pull/41497#issuecomment-2092916352

   > > A subsequent dlopen() call that loads the same shared object with
   > > RTLD_NOW may force symbol resolution for a shared object earlier
   > > loaded with RTLD_LAZY.  Similarly, an object that was previously
   > > opened with RTLD_LOCAL can be promoted to RTLD_GLOBAL in a
   > > subsequent dlopen().
   > 
   > I think it would work to expose a small JNI function from Gandiva that 
just reloads the given path with RTLD_GLOBAL. (It can be a no-op on Windows.)
   
   Hm. I have to try this. I have seen somewhere documentation that said first 
call to dlopen defines symbol resolution behaviour which can't be changed. If 
this works defining some function in Gandiva to promote it to global scope will 
be much cleaner than using jna.


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