installs.ini and profiles.ini should not be both stat'ed and read using main thread I/O during early startup
Categories
(Toolkit :: Startup and Profile System, defect, P2)
Tracking
()
People
(Reporter: florian, Assigned: mcheang)
References
(Regression)
Details
(Keywords: regression, Whiteboard: [fxperf:p2] [fxperfsize:S])
Attachments
(1 file)
I thought we had fixed this in bug 1527704, but I saw a stat call for installs.ini reappear recently when updating my whitelist for the test in bug 1540135.
Here's a profile on the reference hardware on today's nightly: https://perfht.ml/2L4Rn87
Comment 2•6 years ago
|
||
Thinking about this I think we can skip doing this stat check entirely...
Updated•6 years ago
|
Comment 3•5 years ago
|
||
Given comment #2, I assume this is straightforward.
Updated•5 years ago
|
Updated•5 years ago
|
Comment 4•5 years ago
|
||
Too late for a fix in 68 at this point as we are a week away from 68 release.
Reporter | ||
Comment 5•5 years ago
|
||
(In reply to Dave Townsend [:mossop] (he/him) from comment #2)
Thinking about this I think we can skip doing this stat check entirely...
I just saw this installs.ini stat be visible in a startup profile today: https://perfht.ml/2ZmGpxB
The only place in the code that seems to use this value is https://searchfox.org/mozilla-central/rev/38c88cbf4be87dfa0636d15a5d3599a8ea0d1a72/toolkit/profile/nsToolkitProfileService.cpp#656 I doubt this is needed during startup. Do we even need it at all?
Comment 6•5 years ago
|
||
No, as I alluded to in comment 2 I don't think we actually need the installs.ini stat at all (except for the rebuild case). installs.ini cannot change without profiles.ini changing first so the stat is pointless.
Updated•5 years ago
|
Updated•5 years ago
|
Assignee | ||
Comment 7•5 years ago
|
||
Updated•5 years ago
|
Updated•5 years ago
|
Assignee | ||
Comment 8•5 years ago
|
||
This patch is not ready to land yet. I'm currently fixing a Xpcshell test failure for this patch:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=3ef2b7e34360834eca12d2194c6649e11a72cf80
Assignee | ||
Comment 9•5 years ago
|
||
This is the most recent push to TRY: https://treeherder.mozilla.org/#/jobs?repo=try&author=mcheang%40mozilla.com&selectedJob=264306026
Comment 10•5 years ago
|
||
Comment 11•5 years ago
|
||
bugherder |
Comment 12•5 years ago
|
||
Best to leave this to ride with nightly or do you think it is safe to uplift to early beta 70?
Comment 13•5 years ago
|
||
I don't think it's necessary to rush this - it can probably just stay on Nightly.
Comment 14•5 years ago
|
||
Thanks!
Updated•3 years ago
|
Description
•