Skip to content

Commit

Permalink
[profiler] Warn if we can't detect the CPU count.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Rønne Petersen committed Oct 2, 2016
1 parent 76c2b67 commit ffbf540
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion mono/profiler/mono-profiler-log.c
Expand Up @@ -2793,7 +2793,14 @@ mono_cpu_count (void)
return info.dwNumberOfProcessors;
}
#endif
/* FIXME: warn */

static gboolean warned;

if (!warned) {
g_warning ("Don't know how to determine CPU count on this platform; assuming 1");
warned = TRUE;
}

return 1;
}

Expand Down

0 comments on commit ffbf540

Please sign in to comment.