https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125312
--- Comment #10 from Tadeja Kadunc <tadeja.kadunc at gmail dot com> --- FYI from downstream CI - forcing _GLIBCXX_ATOMIC_WORD_BUILTINS=1 in MSYS2's c++config.h makes the repro pass (88M iterations in 30s, mingw-w64-x86_64-gcc 16.1.0-3, was <2s to crash before): https://github.com/apache/arrow/actions/runs/25916033144/job/76180927231?pr=49961#step:7:55 Same workaround also clears wider downstream test failures (heap corruption, hangs, bad_weak_ptr). (https://github.com/apache/arrow/pull/49961/changes/c3d2f5eca82cb21ada18bf96318ca2ddbf35dbe8..b539d6927b764043a2f62f765521da703e249a20#diff-8f89d450462796eb6438476efc6d763038941cdc79d26b8b7b422b9bf8e4b49dR392-R400)
