[Issue 5485] TLS sections handled incorrectly

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jan 26 07:11:00 PST 2011


http://d.puremagic.com/issues/show_bug.cgi?id=5485


Steven Schveighoffer <schveiguy at yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |schveiguy at yahoo.com


--- Comment #4 from Steven Schveighoffer <schveiguy at yahoo.com> 2011-01-26 07:08:53 PST ---
Sorry, that thread_getTLSBlock function was mine (used to prune the LRU cache
for array appending during a collection cycle).  I misinterpreted the
difference between _tlsstart/_tlsend in FreeBSD being a pointer meaning that it
points to where tls starts/ends.  I never tested it, since I don't have a
FreeBSD system.

I think the patch should be applied.  It won't affect anything other than the
thread_getTLSBlock function, as the code that assigns the Thread.m_tls member
already correctly uses the address of the _tlsstart and _tlsend to determine
the block, not the values as I have done.

I'd apply the patch, but I have yet to take the time to learn git.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list