Skip to content

Commit

Permalink
Update python/libcuspatial/libcuspatial/load.py
Browse files Browse the repository at this point in the history
Co-authored-by: Vyas Ramasubramani <[email protected]>
  • Loading branch information
jameslamb and vyasr authored Nov 13, 2024
1 parent 9310a6a commit e0d2472
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions python/libcuspatial/libcuspatial/load.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@
import ctypes
import os

# RTLD_LOCAL is here for safety... using it loads symbols into the
# library-specific table maintained by the loader, but not into the
# global namespace where they may conflict with symbols from other
# loaded DSOs.
# Loading with RTLD_LOCAL adds the library itself to the loader's
# loaded library cache without loading any symbols into the global
# namespace. This allows libraries that express a dependency on
# this library to be loaded later and successfully satisfy this dependency
# without polluting the global symbol table with symbols from
# libcuspatial that could conflict with symbols from other DSOs.
PREFERRED_LOAD_FLAG = ctypes.RTLD_LOCAL


Expand Down

0 comments on commit e0d2472

Please sign in to comment.