Closed Bug 649194 Opened 13 years ago Closed 12 years ago

Abort when the cache IO thread can't be created

Categories

(Core :: Networking: Cache, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla14

People

(Reporter: michal, Assigned: michal)

Details

Attachments

(1 file)

Right now we don't fail to initialize the cache service when initialization of a cache IO thread fails (http://hg.mozilla.org/mozilla-central/annotate/94874a2f3bb3/netwerk/cache/nsCacheService.cpp#l1031). But we do try to dispatch events to this thread with no fallback in case the thread is not available. E.g. http://hg.mozilla.org/mozilla-central/annotate/94874a2f3bb3/netwerk/cache/nsCacheService.cpp#l732

I can't see a reason why creating a new thread should fail unless the process is experiencing some fatal problem, so IMO it makes sense to fail to initialize the cache service.
I believe we should just NS_RUNTIMEABORT...
> I believe we should just NS_RUNTIMEABORT...

+1
Attached patch fixSplinter Review
Attachment #609517 - Flags: review?(bsmith)
Summary: Handle correctly case when the cache IO thread can't be created → Abort when the cache IO thread can't be created
Comment on attachment 609517 [details] [diff] [review]
fix

Review of attachment 609517 [details] [diff] [review]:
-----------------------------------------------------------------

LGTM.
Attachment #609517 - Flags: review?(bsmith) → review+
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: