Bug #74846 | abort_loop is volatile, likely not what intended | ||
---|---|---|---|
Submitted: | 14 Nov 2014 0:47 | Modified: | 13 Feb 2015 14:46 |
Reporter: | Stewart Smith | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Compiling | Severity: | S2 (Serious) |
Version: | 5.7.5 | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | PowerPC |
[14 Nov 2014 0:47]
Stewart Smith
[14 Nov 2014 0:48]
Stewart Smith
fix abort_loop (*) I confirm the code being submitted is offered under the terms of the OCA, and that I am authorized to contribute it.
Contribution: volatile-abort_loop.patch (text/x-patch), 11.24 KiB.
[3 Dec 2014 8:23]
MySQL Verification Team
Hello Stewart Smith, Thank you for the report and contribution. Thanks, Umesh
[13 Feb 2015 14:46]
Paul DuBois
Noted in 5.8.0 changelog. In mysqld.cc, the abort_loop variable was quantified with volatile, which on some platforms could result in changes not being seen immeidately in threads running on different cores. Thanks to Stewart Smith for the patch.