Changeset 105270 in webkit for trunk/Source/JavaScriptCore/runtime/Options.cpp
- Timestamp:
- Jan 18, 2012, 6:15:05 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/Options.cpp
r103286 r105270 28 28 29 29 #include <limits> 30 #include <wtf/NumberOfCores.h> 30 31 #include <wtf/PageBlock.h> 31 32 … … 175 176 176 177 int cpusToUse = 1; 177 #if OS(DARWIN) && ENABLE(PARALLEL_GC) 178 int name[2]; 179 size_t valueSize = sizeof(cpusToUse); 180 name[0] = CTL_HW; 181 name[1] = HW_AVAILCPU; 182 sysctl(name, 2, &cpusToUse, &valueSize, 0, 0); 178 #if ENABLE(PARALLEL_GC) 179 cpusToUse = WTF::numberOfProcessorCores(); 183 180 #endif 184 181 // We don't scale so well beyond 4.
Note:
See TracChangeset
for help on using the changeset viewer.