Closed Bug 1548510 Opened 5 years ago Closed 5 years ago

Some profiler cleanups

Categories

(Core :: JavaScript Engine, task, P3)

task

Tracking

()

RESOLVED FIXED
mozilla68
Tracking Status
firefox68 --- fixed

People

(Reporter: jandem, Assigned: jandem)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

  • These functions do the same thing AFAICT so let's merge them:

https://searchfox.org/mozilla-central/rev/7944190ad1668a94223b950a19f1fffe8662d6b8/js/src/vm/GeckoProfiler.cpp#263

https://searchfox.org/mozilla-central/rev/7944190ad1668a94223b950a19f1fffe8662d6b8/js/src/jit/JitcodeMap.cpp#280

  • GeckoProfilerRuntime::strings is an ExclusiveData<> but it seems to be only accessed on the main thread. I want to put in an assert for this and then remove the locking.
Priority: -- → P3

This lock was necessary when the JITs used these strings (off-thread Ion compilation),
but now the lock was just adding overhead to each script we finalize etc.

This replaces ExclusiveData<> with MainThreadData<> to assert on-main-thread in debug
builds.

These functions did the same thing in a slightly different way.

Depends on D29798

Blocks: 1548775
Pushed by jdemooij@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/59086433eca1
part 1 - Remove unnecessary GeckoProfilerRuntime::strings lock. r=jonco
https://hg.mozilla.org/integration/autoland/rev/39af0d6ccd3d
part 2 - Deduplicate GeckoProfilerRuntime::allocProfileString and JitcodeGlobalEntry::createScriptString. r=jonco
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla68
Regressions: 1549363
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: