On 23-01-17 17:27, Lars Hansen wrote:
> sysconf(_SC_NPROCESSORS_ONLN) is used a number of places in the tree to get
> a core count for parallel algorithms.  The web says that that phrase does
> not really return the number of available cores on ARM Linuxish systems in
> general, including Android - because the return value does not account for
> cores that are sleeping for power saving reasons.  (I've confirmed this
> locally on an ARM board.)  So you may get lucky when you ask.  Or not.
> 
> sysconf(_SC_NPROCESSORS_CONF) works better here.
> 
> JS engine issue with some background and links to other discussions:
> https://bugzilla.mozilla.org/show_bug.cgi?id=1333059.

If only we had some crossplatform runtime that abstracted such system
specifics away from us
(https://bugzilla.mozilla.org/show_bug.cgi?id=663970) then maybe we
wouldn't have to re-fix the same bugs every 5 years.

-- 
GCP
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to