commit eef7c9c42d19e23925c4d1292422a677f0ebd80f
parent 261321856931d3db57698b047becfe188c6879f2
Author: Tooru Fujisawa <arai_a@mac.com>
Date: Tue, 2 Dec 2025 01:26:25 +0000
Bug 2002781 - Part 1: Fix InitialStencilAndDelazifications memory reporting to report each stencil struct itself. r=nbp
Differential Revision: https://phabricator.services.mozilla.com/D274543
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/js/src/frontend/Stencil.cpp b/js/src/frontend/Stencil.cpp
@@ -4141,7 +4141,7 @@ size_t InitialStencilAndDelazifications::sizeOfExcludingThis(
// The initial stencil can be shared between multiple owners, but
// in most case this instance is considered as the main owner, in term
// of the memory reporting.
- size += initial_->sizeOfExcludingThis(mallocSizeOf);
+ size += initial_->sizeOfIncludingThis(mallocSizeOf);
}
size += delazifications_.sizeOfExcludingThis(mallocSizeOf);
@@ -4152,7 +4152,7 @@ size_t InitialStencilAndDelazifications::sizeOfExcludingThis(
}
// Delazifications are exclusively owned by this instance.
- size += (*delazification).sizeOfExcludingThis(mallocSizeOf);
+ size += (*delazification).sizeOfIncludingThis(mallocSizeOf);
}
size += functionKeyToInitialScriptIndex_.sizeOfExcludingThis(mallocSizeOf);