https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111726
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Data race in |lgamma usage in |std::poisson_distribution |std::poisson_distribution | |could cause a Data race --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Krisztián Rugási from comment #0) > As far as I can tell this issue has been present since the initial > implementation of std::poisson_distribution. > The cause of it is that the implementation uses the lgamma function, which > modifies a global variable. I am not 100% sure but since _M_initialize does not use signgam, this is just 2 writes to a global variable that will not be read so the data write race is 100% ok.