[Issue 15513] Memory Corruption with thread local objects

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Jan 19 20:13:57 PST 2016


https://issues.dlang.org/show_bug.cgi?id=15513

--- Comment #2 from Puneet Goel <puneet at coverify.org> ---
Even when I move the static variable to a class, I still get memory corruption.
The following seem necessary to reproduce the issue:

1. Static variable that gets allocated on heap.
2. The variable has to be used in multiple threads.

Also, as of now I am able to reproduce the issue only when a shared D library
is loaded from C. But since the execution control is totally with D after that,
I believe the memory corruption issue is more generic and could happen in
standalone D applications as well.

--


More information about the Digitalmars-d-bugs mailing list