Closed
Bug 214695
Opened 21 years ago
Closed 21 years ago
Incorrect use of PR_AtomicDecrement on reference count
Categories
(NSS :: Libraries, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
3.9
People
(Reporter: wtc, Assigned: wtc)
Details
Attachments
(1 file)
3.39 KB,
patch
|
Details | Diff | Splinter Review |
I found that at several places we use PR_AtomicDecrement to decrement a reference count but then read the reference count "naked" to determine if it has reached 0. That naked read is not thread safe. Instead, we should simply use the return value of PR_AtomicDecrement, which is the result of the decrement.
Assignee | ||
Comment 1•21 years ago
|
||
Assignee | ||
Comment 2•21 years ago
|
||
Patch checked in on the NSS trunk (3.9).
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Target Milestone: --- → 3.9
You need to log in
before you can comment on or make changes to this bug.
Description
•