Closed Bug 1571355 Opened 5 years ago Closed 5 years ago

Base Profiler mutex tweaks

Categories

(Core :: Gecko Profiler, task, P2)

task

Tracking

()

RESOLVED FIXED
mozilla70
Tracking Status
firefox70 --- fixed

People

(Reporter: mozbugz, Assigned: mozbugz)

References

Details

Attachments

(1 file)

Some Base Profiler mutex&lock tweaks:

  • Renamed BPAutoLock to BaseProfilerAutoLock.
  • DEBUG-build ~BaseProfilerMutex() checks that it is unlocked.
  • Prevent BaseProfilerMutex and BaseProfilerAutoLock copies&moves.
  • DEBUG-build check that Lock() sees mOwningThreadId==0 (because that is the initial value, and the value after a previous Unlock()).
  • Don't preserve atomic mOwningThreadId in JS recording.

Renamed BPAutoLock to BaseProfilerAutoLock.
DEBUG-build ~BaseProfilerMutex() checks that it is unlocked.
Prevent BaseProfilerMutex and BaseProfilerAutoLock copies&moves.
DEBUG-build check that Lock() sees mOwningThreadId==0 (because that is the
initial value, and the value after a previous Unlock()).
Don't preserve atomic mOwningThreadId in JS recording.

Depends on D40619

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla70
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: