Bug 1584540 - Correct the computation of the size of LazyStubTier. r=bbouvier
authorLars T Hansen <lhansen@mozilla.com>
Fri, 27 Sep 2019 14:39:59 +0000
changeset 495603 5cb557ba3fce82bd3a8a3c6ae8025bc5c4b73d45
parent 495602 843690981959e08dc2587d29e14148773a34a312
child 495604 ba088db4262c3b6c7734fcafd53be17500d95408
push id114140
push userdvarga@mozilla.com
push dateWed, 02 Oct 2019 18:04:51 +0000
treeherdermozilla-inbound@32eb0ea893f3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbbouvier
bugs1584540
milestone71.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1584540 - Correct the computation of the size of LazyStubTier. r=bbouvier Differential Revision: https://phabricator.services.mozilla.com/D47438
js/src/wasm/WasmCode.cpp
--- a/js/src/wasm/WasmCode.cpp
+++ b/js/src/wasm/WasmCode.cpp
@@ -834,17 +834,17 @@ void* LazyStubTier::lookupInterpEntry(ui
   }
   const LazyFuncExport& fe = exports_[match];
   const LazyStubSegment& stub = *stubSegments_[fe.lazyStubSegmentIndex];
   return stub.base() + stub.codeRanges()[fe.funcCodeRangeIndex].begin();
 }
 
 void LazyStubTier::addSizeOfMisc(MallocSizeOf mallocSizeOf, size_t* code,
                                  size_t* data) const {
-  *data += sizeof(this);
+  *data += sizeof(*this);
   *data += exports_.sizeOfExcludingThis(mallocSizeOf);
   for (const UniqueLazyStubSegment& stub : stubSegments_) {
     stub->addSizeOfMisc(mallocSizeOf, code, data);
   }
 }
 
 bool MetadataTier::clone(const MetadataTier& src) {
   if (!funcToCodeRange.appendAll(src.funcToCodeRange)) {