Changes between Initial Version and Version 1 of Ticket #45832, comment 24


Ignore:
Timestamp:
Oct 13, 2015, 12:05:33 AM (9 years ago)
Author:
ryandesign (Ryan Carsten Schmidt)
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #45832, comment 24

    initial v1  
    33> I could not, for example, find a bug report in [https://bugzilla.mozilla.org/ Mozilla's Bugzilla] about the use of `_SC_NPROCESSORS_ONLN`. A quick Google search did reveal [http://www.cprogramming.com/snippets/source-code/find-the-number-of-cpu-cores-for-windows-mac-or-linux this code snippet] purporting to show a Mac-compatible equivalent.
    44
    5 unistd.h does not contain a definition of _SC_NPROCESSORS_ONLN. Another option to provide the value would be, taken from the command 'sysctl -b hw.availcpu | awk '{print $NF}'' to "patch" jsgc.cpp. In Shell it would be something like that:
     5unistd.h does not contain a definition of _SC_NPROCESSORS_ONLN. Another option to provide the value would be, taken from the command `sysctl -b hw.availcpu | awk '{print $NF}'` to "patch" jsgc.cpp. In Shell it would be something like that:
    66
    77{{{