aboutsummaryrefslogtreecommitdiff
path: root/ldc-druntime-finiTLSRanges.patch
blob: 152f3414239c9365b817baf29cedf5048e25b464 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
diff --git a/src/rt/sections_elf_shared.d b/src/rt/sections_elf_shared.d
index a1ea73a..243e3f6 100644
--- a/src/rt/sections_elf_shared.d
+++ b/src/rt/sections_elf_shared.d
@@ -149,7 +149,8 @@ version (Shared)
 
     void finiTLSRanges(Array!(ThreadDSO)* tdsos)
     {
-        tdsos.reset();
+        // Disabling like static version - not sure this one is misbehaving though
+        // tdsos.reset();
     }
 
     void scanTLSRanges(Array!(ThreadDSO)* tdsos, scope ScanDG dg) nothrow
@@ -234,7 +235,8 @@ else
 
     void finiTLSRanges(Array!(void[])* rngs)
     {
-        rngs.reset();
+        // Throws exception, see https://github.com/lomereiter/sambamba/issues/219#issuecomment-275838455
+        // rngs.reset();
     }
 
     void scanTLSRanges(Array!(void[])* rngs, scope ScanDG dg) nothrow