Closed Bug 1260891 Opened 9 years ago Closed 9 years ago

Acquire and release the lock when destorying an `ExclusiveData<T>`'s protected value

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla48
Tracking Status
firefox48 --- fixed

People

(Reporter: fitzgen, Assigned: fitzgen)

References

Details

Attachments

(1 file)

Even if there is not a traditional race between uses of the protected data and the `ExclusiveData<T>`'s destruction, the thread running the destructor has no guarantee that its cache is up to date with changes already made by other threads. The new acquire and release surrounding the destructor ensures that the destructor doesn't run on stale cache lines.
Assignee: nobody → nfitzgerald
Status: NEW → ASSIGNED
Attachment #8736482 - Flags: review?(terrence) → review+
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla48
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: