зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1746430: URLClassifier cleanup r=dimi
Differential Revision: https://phabricator.services.mozilla.com/D134029
This commit is contained in:
Родитель
4c05a6822d
Коммит
bb03547b02
|
@ -447,6 +447,8 @@ nsresult nsUrlClassifierPrefixSet::LoadPrefixes(nsCOMPtr<nsIInputStream>& in) {
|
|||
|
||||
uint32_t nsUrlClassifierPrefixSet::CalculatePreallocateSize() const {
|
||||
uint32_t fileSize = 4 * sizeof(uint32_t);
|
||||
MutexAutoLock lock(mLock);
|
||||
|
||||
MOZ_RELEASE_ASSERT(mTotalPrefixes >= mIndexPrefixes.Length());
|
||||
uint32_t deltas = mTotalPrefixes - mIndexPrefixes.Length();
|
||||
fileSize += mIndexPrefixes.Length() * sizeof(uint32_t);
|
||||
|
|
|
@ -79,7 +79,7 @@ class nsUrlClassifierPrefixSet final : public nsIUrlClassifierPrefixSet {
|
|||
// how many prefixes we have.
|
||||
uint32_t mTotalPrefixes;
|
||||
|
||||
nsCString mName;
|
||||
nsCString mName; // Set in Init() only
|
||||
mozilla::CorruptionCanary mCanary;
|
||||
};
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче