[Issue 14511] Profiler does not work with multithreaded programs
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Mon Apr 18 00:43:38 PDT 2016
https://issues.dlang.org/show_bug.cgi?id=14511
jj75607 at gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jj75607 at gmail.com
--- Comment #5 from jj75607 at gmail.com ---
Profiler fails with atomic operations:
import core.atomic;
shared struct S
{
uint counter;
bool inc() shared
{
atomicOp!("+=")(counter, 1);
return true;
}
}
int main(string[] argv)
{
S s;
return 0;
}
This program segfaults if compiled with profiler hooks
--
More information about the Digitalmars-d-bugs
mailing list