Closed Bug 457811 Opened 16 years ago Closed 16 years ago

Use a threadpool for preload threads

Categories

(Core :: DOM: HTML Parser, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: mrbkap, Unassigned)

Details

Currently, we'll happily create as many threads as parsers for preloading. While this is OK, I worry about the edge case where somebody is recovering for a crash with 50 windows and 10 tabs in each window. In such a case, we'll create too many threads and possibly run out of resources. We could create a threadpool to limit the number of preload threads at any time to something reasonable like 10 or 20.
Flags: blocking1.9.1?
Not fixing this before checking in turned out to be the cause of major crashiness. The version that stuck uses a threadpool.
Status: NEW → RESOLVED
Closed: 16 years ago
Flags: blocking1.9.1?
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.