[Issue 14511] Profiler does not work with multithreaded programs

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Nov 8 04:32:11 PST 2016


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

Alex <sascha.orlov at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sascha.orlov at gmail.com

--- Comment #6 from Alex <sascha.orlov at gmail.com> ---
After an update from 2.071.2 to 2.072.0 
a seg fault with the profile option on a mac appear with the following example 

void main() {}
void f()
{
    import core.atomic: atomicOp;
    shared size_t workUnitIndex;
    atomicOp!"+="(workUnitIndex, 1);
}

which does not appear with the prior version of atomic.d 

Many thanks to ag0aep6g for helping with the code.

--


More information about the Digitalmars-d-bugs mailing list