Bug 5582 – Improvements to the DLL startup code

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
druntime
Product
D
Version
D2
Platform
Other
OS
Windows
Creation time
2011-02-14T23:09:00Z
Last change time
2012-05-21T04:24:06Z
Keywords
patch
Assigned to
nobody
Creator
r.sagitario

Attachments

IDFilenameSummaryContent-TypeSize
9090001-dll-improvements.patchDLL startup improvementsapplication/octet-stream7933
9110002-GetTlsDataAddress-uint-id.patchmissing change from previous patchtext/plain1414

Comments

Comment #0 by r.sagitario — 2011-02-14T23:09:54Z
Created attachment 909 DLL startup improvements I have a few improvements to the startup code to DLLs: 1. Make the TLS patch work under Windows Server 2003 and XP/64 2. On a 64-bit OS, there sometimes seem to exist threads that don't have any TLS set up, so ignore these threads, assuming they are low level system threads. 3. improve TLS setup of already existing threads by not only switching the TLS entry of the current DLL, but simply the full TLS array of the current thread.
Comment #1 by r.sagitario — 2011-02-14T23:32:25Z
Created attachment 911 missing change from previous patch Sorry, missed this change. (Is there a way to get a single patch across multiple commits from git?).
Comment #2 by verylonglogin.reg — 2012-05-21T04:23:11Z
Comment #3 by verylonglogin.reg — 2012-05-21T04:24:06Z