Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

[dmd-cxx] fix Issue 19861 - core.cpuid reports the wrong number of threads #3107

Merged
merged 2 commits into from
May 17, 2020
Merged

[dmd-cxx] fix Issue 19861 - core.cpuid reports the wrong number of threads #3107

merged 2 commits into from
May 17, 2020

Conversation

ibuclaw
Copy link
Member

@ibuclaw ibuclaw commented May 17, 2020

Backported from #2620

rainers and others added 2 commits May 17, 2020 17:01
do not use i7 detection on AMD processors
use cpuid 0x8000_001E to detect the number of threads per core
@dlang-bot
Copy link
Contributor

Thanks for your pull request, @ibuclaw!

Bugzilla references

Auto-close Bugzilla Severity Description
19861 minor core.cpuid reports the wrong number of threads

Testing this PR locally

If you don't have a local development environment setup, you can use Digger to test this PR:

dub run digger -- build "dmd-cxx + druntime#3107"

@dlang-bot dlang-bot added the Bug Fix Include reference to corresponding bugzilla issue label May 17, 2020
@ibuclaw
Copy link
Member Author

ibuclaw commented May 17, 2020

Bootstrapped, running regression tests...

@Geod24
Copy link
Member

Geod24 commented May 17, 2020

Not backporting the tests ?

@ibuclaw
Copy link
Member Author

ibuclaw commented May 17, 2020

What tests?

@ibuclaw
Copy link
Member Author

ibuclaw commented May 17, 2020

What tests?

It's just a bunch of printfs, nothing is actually checked. So I don't honestly see the point of it.

@ibuclaw ibuclaw merged commit 5cc061a into dlang:dmd-cxx May 17, 2020
@ibuclaw ibuclaw deleted the dmd-cxx-cpuid branch May 17, 2020 16:33
@ibuclaw
Copy link
Member Author

ibuclaw commented May 17, 2020

Regression tests ran, no reported failures.

kraj pushed a commit to kraj/gcc that referenced this pull request May 17, 2020
- core.cpuid has been fixed to not use i7 detection on AMD processors.
- std.net.curl has been fixed to correctly handle HTTP/2 status lines.
- std.zip has had a test fixed to not rely on unzip being installed.

Fixes: PR d/95166
       PR d/95167
       PR d/95168

Reviewed-on: dlang/druntime#3107
	     dlang/phobos#7486
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Fix Include reference to corresponding bugzilla issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants