Stop doing an exists() call in StartupCache::LoadArchive()
Categories
(Core :: XPCOM, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox69 | --- | fixed |
People
(Reporter: Gijs, Assigned: mconley)
References
(Blocks 1 open bug)
Details
(Keywords: main-thread-io, perf, Whiteboard: [fxperf:p2][fxperfsize:XS])
Attachments
(2 files)
bool exists;
mArchive = nullptr;
nsresult rv = mFile->Exists(&exists);
if (NS_FAILED(rv) || !exists) return NS_ERROR_FILE_NOT_FOUND;
mArchive = new nsZipArchive();
rv = mArchive->OpenArchive(mFile);
I'd expect nsIZipArchive to complain if it gets passed a non-existent file; we should key off that instead of a separate check.
Reporter | ||
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 1•5 years ago
|
||
Assignee | ||
Comment 2•5 years ago
|
||
Depends on D31086
Pushed by mconley@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c19e86931d1a Skip exists check when trying to open startupcache zip file archive. r=froydnj https://hg.mozilla.org/integration/autoland/rev/8242c6c52f6c Remove startupCache stat entry from main thread IO whitelist. r=florian
Comment 4•5 years ago
•
|
||
Backed out for bustages at StartupCache.cpp
Push with failures: https://treeherder.mozilla.org/#/jobs?repo=autoland&resultStatus=testfailed%2Cbusted%2Cexception&selectedJob=247553980&revision=8242c6c52f6c43eac5eee441a98a0742d553597f
Failure log: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=247553980&repo=autoland&lineNumber=23231
Backout: https://hg.mozilla.org/integration/autoland/rev/acd39065fd9fa5f7fe7a4530d5a991f64dcbc9a0
Assignee | ||
Comment 5•5 years ago
|
||
Hell, how embarrassing. Sorry for the run-around - new patch coming up.
Pushed by mconley@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/79a583fd7cd9 Skip exists check when trying to open startupcache zip file archive. r=froydnj https://hg.mozilla.org/integration/autoland/rev/9ee0f79d80d1 Remove startupCache stat entry from main thread IO whitelist. r=florian
Assignee | ||
Updated•5 years ago
|
Comment 7•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/79a583fd7cd9
https://hg.mozilla.org/mozilla-central/rev/9ee0f79d80d1
Description
•