зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1729488 - Call malloc_size_of on the derived pointer to avoid ASAN complaints.
MANUAL PUSH: Trivial orange fix CLOSED TREE
This commit is contained in:
Родитель
f298076046
Коммит
06419ec5b2
|
@ -445,7 +445,7 @@ auto SharedSubResourceCache<Traits, Derived>::Lookup(Loader& aLoader,
|
|||
template <typename Traits, typename Derived>
|
||||
size_t SharedSubResourceCache<Traits, Derived>::SizeOfIncludingThis(
|
||||
MallocSizeOf aMallocSizeOf) const {
|
||||
size_t n = aMallocSizeOf(this);
|
||||
size_t n = aMallocSizeOf(&AsDerived());
|
||||
|
||||
n += mComplete.ShallowSizeOfExcludingThis(aMallocSizeOf);
|
||||
for (const auto& data : mComplete.Values()) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче