Closed Bug 1752171 Opened 2 years ago Closed 2 years ago

Remove unused lock in CompositorBridgeChild

Categories

(Core :: Graphics, defect)

defect

Tracking

()

RESOLVED FIXED
98 Branch
Tracking Status
firefox98 --- fixed

People

(Reporter: jesup, Assigned: jesup)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

CompositorBridgeChild has this comment:
// Off-Main-Thread Painting state. This covers access to the OMTP-related
// state below.
Monitor mPaintLock;

Below are some fields I'm removing (unused) in bug 1752168, mCanvasChild, and mWebGPUChild. Are those *Child members accessed on multiple threads, and do they need to obtain the mPaintLock? (I'm guessing no).

Conversely, the one place mPaintLock is still taken is in ActorDestroy(), to guard mCanSend and mActorDestroyed. Great (though it's not at all obvious those would be protected from the .h file), except......

None of the other accesses to mCanSend/mActorDestroyed are locked.

Do they need to be locked (are they accessed from multiple threads)? If not, can we just get rid of the mutex?

Flags: needinfo?(nical.bugzilla)

The lock can go away entirely. It was introduced to do some painting off the main thread but OMTP has since been removed.

Flags: needinfo?(nical.bugzilla)

Doesn't need to be a sec bug anymore

Summary: Locking issues in CompositorBridgeChild → Remove unused lock in CompositorBridgeChild
Assignee: nobody → rjesup
Status: NEW → ASSIGNED
Group: core-security
Pushed by abutkovits@mozilla.com:
https://hg.mozilla.org/mozilla-central/rev/6c5bbb5691ff
Remove unused lock from CompositorBridgeChild r=gfx-reviewers,jrmuizel
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 98 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: