Switch NetBSD from reading /proc (which is broken) to getloadavg()
(which is already used by Darwin). NetBSD discourages using procfs
in favor of system API calls.
Details
Details
Diff Detail
Diff Detail
Event Timeline
runtime/src/z_Linux_util.cpp | ||
---|---|---|
2088 | BTW this one doesn't seem to be used either. If you agree, I can send a separate change removing it as well. |
Comment Actions
The official core statement in NetBSD is to deprecate /proc. Can we switch to share code with KMP_OS_DARWIN? Are there any issues with it?
If there is need to count running threads, we shall use sysctl(3) to get the list of threads.
Comment Actions
If there are any issues with getloadavg(3), I will prepare a sysctl(3)-based function.
Comment Actions
@krytarowski, updated as requested. FTR, this branch is using different rules for load-balancing apparently.
BTW this one doesn't seem to be used either. If you agree, I can send a separate change removing it as well.