[Bug d/112408] [12/13/14 regression] d21 loops in getCpuInfo0B in Solaris/x86 kernel zone
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Nov 7 13:26:28 GMT 2023
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112408
--- Comment #9 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-12 branch has been updated by Iain Buclaw
<ibuclaw@gcc.gnu.org>:
https://gcc.gnu.org/g:8a880d895a468a44fd3e268dc548e64aebe8f5d4
commit r12-9963-g8a880d895a468a44fd3e268dc548e64aebe8f5d4
Author: Iain Buclaw <ibuclaw@gdcproject.org>
Date: Tue Nov 7 14:04:07 2023 +0100
libphobos: Fix regression d21 loops in getCpuInfo0B in Solaris/x86 kernel
zone
This function assumes that cpuid would return "invalid domain" when a
sub-leaf index greater than what's supported is requested. This turned
out not to always be the case when running on some virtual machines.
As the loop only does anything for levels 0 and 1, make that a hard
limit for number of times the loop is ran.
PR d/112408
libphobos/ChangeLog:
* libdruntime/core/cpuid.d (getCpuInfo0B): Limit number of times
loop
runs.
(cherry picked from commit 0b25c1295d4e84af681f4b1f4af2ad37cd270da3)
More information about the Gcc-bugs
mailing list