Closed
Bug 714450
Opened 13 years ago
Closed 13 years ago
Slow SQL statement recording accesses a hashtable from multiple threads simultaneously causing badness
Categories
(Toolkit :: Telemetry, defect)
Tracking
()
RESOLVED
FIXED
mozilla12
Tracking | Status | |
---|---|---|
firefox10 | --- | unaffected |
firefox11 | + | unaffected |
People
(Reporter: khuey, Assigned: vladan)
References
Details
(Keywords: assertion, regression)
Attachments
(1 file)
2.34 KB,
patch
|
benjamin
:
review+
|
Details | Diff | Splinter Review |
Reporter | ||
Updated•13 years ago
|
status-firefox10:
--- → unaffected
status-firefox11:
--- → affected
status-firefox12:
--- → affected
tracking-firefox11:
--- → ?
Assignee | ||
Comment 1•13 years ago
|
||
(In reply to Kyle Huey [:khuey] (khuey@mozilla.com) from comment #0)
> http://hg.mozilla.org/mozilla-central/rev/fd47a1e23039#l8.248
Hmm, the mTrackedDBs hash table is a whitelist initialized when Telemetry is initialized and then only ever read afterwards (at least until destruction anyway). Is there an issue with multiple threads reading from an immutable nsTHashtable without synchronization?
Reporter | ||
Comment 2•13 years ago
|
||
As we discussed on IRC, the hashtable needs to be marked as immutable with PL_DHashMarkTableImmutable. The best way to do this is probably to expose a MarkImmutable() function on nsTHashtable that calls PL_DHashMarkTableImmutable on the underlying table and then call MarkImmutable when you finish setting up the table.
Assignee | ||
Comment 3•13 years ago
|
||
Attachment #586994 -
Flags: review?(benjamin)
Assignee | ||
Updated•13 years ago
|
Assignee: nobody → vdjeric
Updated•13 years ago
|
Attachment #586994 -
Flags: review?(benjamin) → review+
Assignee | ||
Comment 4•13 years ago
|
||
Assignee | ||
Updated•13 years ago
|
Target Milestone: --- → mozilla12
Comment 5•13 years ago
|
||
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Updated•13 years ago
|
status-firefox12:
affected → ---
Comment 6•13 years ago
|
||
Is the user pain significant enough, and the patch low-risk enough, to land on Beta? If so, please nominate for Beta 11 approval.
Reporter | ||
Comment 7•13 years ago
|
||
The bug that caused this was backed out of 11, so there's nothing to do there.
Updated•13 years ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•