[Issue 15975] TLS not scanned correctly for main thread

2016-05-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15975

Rainer Schuetze  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |INVALID

--- Comment #3 from Rainer Schuetze  ---
This is LDC specific.

--


[Issue 15975] TLS not scanned correctly for main thread

2016-05-02 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15975

--- Comment #2 from Rainer Schuetze  ---
Sorry, screwed up the test completely. It is not the variable that is
misaligned, but the range scanned by the GC. Use this test program:

import core.stdc.stdio;
import rt.sections;

void* tls;

void main()
{
foreach (ref sg; SectionGroup)
{
foreach (rng; sg.gcRanges)
printf("glob: beg = %p  end = %p\n", rng.ptr, rng.ptr +
rng.length);
}
if (auto arr = initTLSRanges()) 
foreach (rng; *arr)
printf("tls:  beg = %p  end = %p\n", rng.ptr, rng.ptr +
rng.length);

printf(" = %p\n", );
}

It prints:
glob: beg = 0x6299f0  end = 0x62e3a8
tls:  beg = 0x7fd37dfdb717  end = 0x7fd37dfdba40
 = 0x7fd37dfdb710

--


[Issue 15975] TLS not scanned correctly for main thread

2016-05-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15975

Rainer Schuetze  changed:

   What|Removed |Added

   Keywords||pull

--- Comment #1 from Rainer Schuetze  ---
https://github.com/dlang/druntime/pull/1555

--