Bug 1746430: URLClassifier cleanup r=dimi

Differential Revision: https://phabricator.services.mozilla.com/D134029
This commit is contained in:
Randell Jesup 2021-12-16 18:42:58 +00:00
Родитель 4c05a6822d
Коммит bb03547b02
2 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -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;
};