Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(297)

Unified Diff: runtime/vm/os_fuchsia.cc

Issue 2244253004: [fuchsia] Use sysconf to get number of processors (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/bin/run_vm_tests_fuchsia.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/os_fuchsia.cc
diff --git a/runtime/vm/os_fuchsia.cc b/runtime/vm/os_fuchsia.cc
index e28ef549754a1d7a82463ccc5d762ad1afac2ce1..b196c48aed820a4c6e6c50670963ae8d5ea2f203 100644
--- a/runtime/vm/os_fuchsia.cc
+++ b/runtime/vm/os_fuchsia.cc
@@ -10,7 +10,6 @@
#include <errno.h>
#include <magenta/syscalls.h>
#include <magenta/types.h>
-#include <runtime/sysinfo.h>
#include "platform/assert.h"
#include "vm/zone.h"
@@ -152,7 +151,7 @@ bool OS::AllowStackFrameIteratorFromAnotherThread() {
int OS::NumberOfAvailableProcessors() {
- return mxr_get_nprocs_conf();
+ return sysconf(_SC_NPROCESSORS_CONF);
}
« no previous file with comments | « runtime/bin/run_vm_tests_fuchsia.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698