Bug 649194 - Abort when the cache IO thread can't be created
authorMichal Novotny <michal.novotny@gmail.com>
Tue, 27 Mar 2012 10:20:54 +0200
changeset 93720 c5d6aa6be62caa20d7d878d2add10bbb26d8b023
parent 93719 7d7b5a5d1b8c39bd3bdbe653f8fedeaf058de49f
child 93721 31d88c5a7b187a25e495ab1ae8063bd1eef5fcb8
push id886
push userlsblakk@mozilla.com
push dateMon, 04 Jun 2012 19:57:52 +0000
treeherdermozilla-beta@bbd8d5efd6d1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs649194
milestone14.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 649194 - Abort when the cache IO thread can't be created
netwerk/cache/nsCacheService.cpp
--- a/netwerk/cache/nsCacheService.cpp
+++ b/netwerk/cache/nsCacheService.cpp
@@ -1181,17 +1181,17 @@ nsCacheService::Init()
     if (mozilla::net::IsNeckoChild()) {
         return NS_ERROR_UNEXPECTED;
     }
 
     CACHE_LOG_INIT();
 
     nsresult rv = NS_NewThread(getter_AddRefs(mCacheIOThread));
     if (NS_FAILED(rv)) {
-        NS_WARNING("Can't create cache IO thread");
+        NS_RUNTIMEABORT("Can't create cache IO thread");
     }
 
     rv = nsDeleteDir::Init();
     if (NS_FAILED(rv)) {
         NS_WARNING("Can't initialize nsDeleteDir");
     }
 
     // initialize hashtable for active cache entries