Title: [251260] trunk/PerformanceTests
- Revision
- 251260
- Author
- [email protected]
- Date
- 2019-10-17 14:44:39 -0700 (Thu, 17 Oct 2019)
Log Message
[Linux] Avoid usage of <sys/sysctl.h> in MallocBench
https://bugs.webkit.org/show_bug.cgi?id=203109
Reviewed by Carlos Alberto Lopez Perez.
* MallocBench/MallocBench/CPUCount.cpp: Only include <sys/sysctl.h> if
the sysctl() function will be used.
Modified Paths
Diff
Modified: trunk/PerformanceTests/ChangeLog (251259 => 251260)
--- trunk/PerformanceTests/ChangeLog 2019-10-17 21:39:27 UTC (rev 251259)
+++ trunk/PerformanceTests/ChangeLog 2019-10-17 21:44:39 UTC (rev 251260)
@@ -1,3 +1,13 @@
+2019-10-17 Adrian Perez de Castro <[email protected]>
+
+ [Linux] Avoid usage of <sys/sysctl.h> in MallocBench
+ https://bugs.webkit.org/show_bug.cgi?id=203109
+
+ Reviewed by Carlos Alberto Lopez Perez.
+
+ * MallocBench/MallocBench/CPUCount.cpp: Only include <sys/sysctl.h> if
+ the sysctl() function will be used.
+
2019-10-17 Carlos Alberto Lopez Perez <[email protected]>
[GTK] Perf test IndexedDB/basic/index-cursor-delete.html timeouts
Modified: trunk/PerformanceTests/MallocBench/MallocBench/CPUCount.cpp (251259 => 251260)
--- trunk/PerformanceTests/MallocBench/MallocBench/CPUCount.cpp 2019-10-17 21:39:27 UTC (rev 251259)
+++ trunk/PerformanceTests/MallocBench/MallocBench/CPUCount.cpp 2019-10-17 21:44:39 UTC (rev 251260)
@@ -26,10 +26,13 @@
#include "CPUCount.h"
#include <stdlib.h>
#include <sys/param.h>
-#include <sys/sysctl.h>
#include <sys/types.h>
#include <unistd.h>
+#ifdef __APPLE__
+#include <sys/sysctl.h>
+#endif
+
static size_t count;
size_t cpuCount()
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes