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

--- Comment #2 from Puneet Goel <[email protected]> ---
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.

--

Reply via email to