Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Merge pull request #947 from klickverbot/run-tls-dtors
Browse files Browse the repository at this point in the history
Issue 13414 - Static destructors not called correctly with dynamic loading
  • Loading branch information
MartinNowak committed Oct 15, 2014
1 parent aa6667a commit 73510fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rt/sections_linux.d
Original file line number Diff line number Diff line change
Expand Up @@ -520,8 +520,8 @@ void runModuleConstructors(DSO* pdso, bool runTlsCtors)

void runModuleDestructors(DSO* pdso, bool runTlsDtors)
{
pdso._moduleGroup.runTlsDtors();
if (runTlsDtors) pdso._moduleGroup.runDtors();
if (runTlsDtors) pdso._moduleGroup.runTlsDtors();
pdso._moduleGroup.runDtors();
}

void registerGCRanges(DSO* pdso)
Expand Down

0 comments on commit 73510fd

Please sign in to comment.