Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PlatformNotSupportedException when reading ProcessorAffinity on non-Windows platforms #474

Closed
Ky7m opened this issue Jun 14, 2017 · 2 comments
Assignees
Labels
Milestone

Comments

@Ky7m
Copy link
Contributor

Ky7m commented Jun 14, 2017

InProcessExecutor throws an exception on non-Windows platforms (target framework: netcoreapp1.1). Specifically, it throws an error when try to get ProcessorAffinity InProcessExecutor.cs#L95:

var oldAffinity = process.ProcessorAffinity;

exception:

Unhandled Exception: System.PlatformNotSupportedException: Processor affinity for processes or threads is not supported on this platform.

I found similar issue #298, but it is closed.

@AndreyAkinshin AndreyAkinshin self-assigned this Jun 14, 2017
@AndreyAkinshin AndreyAkinshin added this to the v0.10.9 milestone Jun 14, 2017
@AndreyAkinshin
Copy link
Member

Hey @Ky7m, thanks for the report, should be fixed now.

You can check it in BenchmarkDotNet 0.10.8.226 (https://ci.appveyor.com/project/dotnetfoundation/benchmarkdotnet/build/0.10.8.226) from our appveyor feed (see http://benchmarkdotnet.org/Guides/NuGet.htm#nightly)

@Ky7m
Copy link
Contributor Author

Ky7m commented Jun 14, 2017

Thank you @AndreyAkinshin for prompt response and quick fix. I have verified with new source and issue is gone now.
Also it was much needed to continue work on #426 . Thanks again!

alinasmirnova pushed a commit to alinasmirnova/BenchmarkDotNet that referenced this issue Sep 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants