-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ffi: use a new C library namespace when the dynamic library load
If symbols from the dynamic library are loaded into the global namespace (ffi.C), by invoke ffi.load() with global is true and without save the return value, it may be garbage collected. For correct work the return value must be saved. Example - tarantool/tarantool#4999 So, use a new C library namespace instead the global one. This will help to keep the global namespace clean and avoid the problem with garbage collection.
- Loading branch information
1 parent
8401d47
commit 62a557f
Showing
1 changed file
with
11 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters