Closed Bug 1368325 Opened 7 years ago Closed 7 years ago

js::gc::BarriersAreAllowedOnCurrentThread() shows up in performance profiles

Categories

(Core :: JavaScript Engine, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla56
Tracking Status
firefox56 --- fixed

People

(Reporter: smaug, Assigned: jandem)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

js::gc::BarriersAreAllowedOnCurrentThread() is called in some very hot code paths, like inside GetWrapper. Is there any way to avoid the tls lookup?
I've noticed this too. It's the MOZ_DIAGNOSTIC_ASSERT in ExposeGCThingToActiveJS so it does not affect release/beta, but it would help profiling to not have these perf differences between Nightly and beta.
We can remove this code now. We'll have to put it back if we ever revive bug 1308039, but that's fine.
Attached patch Patch (deleted) — Splinter Review
This removes BarriersAreAllowedOnCurrentThread and related code.
Assignee: nobody → jdemooij
Status: NEW → ASSIGNED
Attachment #8878025 - Flags: review?(wmccloskey)
Comment on attachment 8878025 [details] [diff] [review] Patch Review of attachment 8878025 [details] [diff] [review]: ----------------------------------------------------------------- Thanks!
Attachment #8878025 - Flags: review?(wmccloskey) → review+
Blocks: 1245279
Pushed by jandemooij@gmail.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/370bb186e98f Remove JSContext::allowGCBarriers and related code as it's not used anywhere. r=billm
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla56
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: