https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71744
--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Note the kernel has many of these locks too. Have you reported those cases to them? And yes I know about the number of cores increasing, trust me, I use a 96 (or 48 depending on if I am on single socket or two) core machines for most of my work now so I know all about this issue. Plus I will be using a 104 core machine soon too (2x54). I have been looking into lock issues too.