Skip to content

Commit e2faa0b

Browse files
committed
Bug 1778259 - Attach the correct comments to PLDHashTable::ShallowSizeOf.. r=xpcom-reviewers,jstutte DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D151100
1 parent 7458e38 commit e2faa0b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

xpcom/ds/PLDHashTable.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -499,10 +499,10 @@ class PLDHashTable {
499499
// Measure the size of the table's entry storage. If the entries contain
500500
// pointers to other heap blocks, you have to iterate over the table and
501501
// measure those separately; hence the "Shallow" prefix.
502-
size_t ShallowSizeOfIncludingThis(mozilla::MallocSizeOf aMallocSizeOf) const;
502+
size_t ShallowSizeOfExcludingThis(mozilla::MallocSizeOf aMallocSizeOf) const;
503503

504504
// Like ShallowSizeOfExcludingThis(), but includes sizeof(*this).
505-
size_t ShallowSizeOfExcludingThis(mozilla::MallocSizeOf aMallocSizeOf) const;
505+
size_t ShallowSizeOfIncludingThis(mozilla::MallocSizeOf aMallocSizeOf) const;
506506

507507
// Mark a table as immutable for the remainder of its lifetime. This
508508
// changes the implementation from asserting one set of invariants to

0 commit comments

Comments
 (0)