Bug 1250115 - initialized pollInterval with 0 in order to prevent garbage value if Poll(..) doesn't get called. r=dragana
☠☠ backed out by 9ad3b7f8efce ☠ ☠
authorBogdan Postelnicu <bogdan.postelnicu@softvision.ro>
Wed, 24 Feb 2016 11:59:07 +0200
changeset 321709 3955642fc8a9496b03e95da08c4ce81f477a6adb
parent 321708 889072501f26d2e89e3d3552e7b4fad79cbffb75
child 321710 ca2b8152c721a2c2442912ad9fc4b05685a9523c
push id5913
push userjlund@mozilla.com
push dateMon, 25 Apr 2016 16:57:49 +0000
treeherdermozilla-beta@dcaf0a6fa115 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdragana
bugs1250115
milestone47.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1250115 - initialized pollInterval with 0 in order to prevent garbage value if Poll(..) doesn't get called. r=dragana MozReview-Commit-ID: HoMv3sBg74W
netwerk/base/nsSocketTransportService2.cpp
--- a/netwerk/base/nsSocketTransportService2.cpp
+++ b/netwerk/base/nsSocketTransportService2.cpp
@@ -1062,19 +1062,19 @@ nsSocketTransportService::DoPollIteratio
     // 30 active connections is the historic limit before firefox 7's 256. A few
     //  windows systems have troubles with the higher limit, so actively probe a
     // limit the first time we exceed 30.
     if ((mActiveCount > 30) && !mProbedMaxCount)
         ProbeMaxCount();
 #endif
 
     // Measures seconds spent while blocked on PR_Poll
-    uint32_t pollInterval;
-
+    uint32_t pollInterval = 0;
     int32_t n = 0;
+    pollDuration = 0;    
 #if !defined(MOZILLA_XPCOMRT_API)
     if (!gIOService->IsNetTearingDown()) {
         // Let's not do polling during shutdown.
         n = Poll(wait, &pollInterval, pollDuration);
     }
 #else
     n = Poll(wait, &pollInterval, pollDuration);
 #endif // defined(MOZILLA_XPCOMRT_API)