MemoryModule doesn't handle TLS completely.
Open94e3289b7996977cc978b649b437fe9890a7b0bbCreated 2 years agoUpdated 2 years ago
Descriptionwiki2025-01-25 18:29:48
MemoryModule only calls the TLS callbacks for DLL_PROCESS_ATTACH, never for DLL_PROCESS_DETACH|DLL_THREAD_ATTACH|DLL_THREAD_DETACH. This means that shared memory - if used in loaded dll's - can never be handled correctly.
Adding DLL_PROCESS_DETACH is quite trivial, the others are more complicated. But let's make a start. Until this is finished, the TIP #709 implementation disables loading any dll in memory which has a TLS section.
This ticket is meant to keep track of the improvements.
Log in (anonymous is fine) to add a comment.