aboutsummaryrefslogtreecommitdiff
path: root/testes/libs/lib22.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* New method to unload DLLsRoberto Ierusalimschy2025-07-091-0/+51
| | | | | | | | | | External strings created by DLLs may need the DLL code to be deallocated. This implies that a DLL can only be unloaded after all its strings were deallocated, which happen only after the run of all finalizers. To ensure that order, we create a 'library string' to represent each DLL and keep it locked. When this string is deallocated (after the deallocation of any string created by the DLL) it closes its corresponding DLL.
* File 'lib2-v2.so' generated from its own sourceRoberto Ierusalimschy2019-05-031-0/+25
Instead of being a copy of 'lib2.so', 'lib2-v2.so' has its own source file ('lib22.c'), so that the test can distinguish both libraries.