summaryrefslogtreecommitdiffstats
path: root/js/public/MemoryMetrics.h
diff options
context:
space:
mode:
authortrav90 <travawine@palemoon.org>2018-09-12 05:41:41 -0500
committertrav90 <travawine@palemoon.org>2018-09-12 05:41:41 -0500
commit847f12e88faf1b9a34d0b6fa9b262dfed209aedb (patch)
treecfec69fc3613d921f0f466574f8c67695f246a96 /js/public/MemoryMetrics.h
parent2f64d5eeecdeb995504748e3da37964d22cc27f0 (diff)
downloadUXP-847f12e88faf1b9a34d0b6fa9b262dfed209aedb.tar
UXP-847f12e88faf1b9a34d0b6fa9b262dfed209aedb.tar.gz
UXP-847f12e88faf1b9a34d0b6fa9b262dfed209aedb.tar.lz
UXP-847f12e88faf1b9a34d0b6fa9b262dfed209aedb.tar.xz
UXP-847f12e88faf1b9a34d0b6fa9b262dfed209aedb.zip
Stop using PodZero in several places to initialize values of non-trivial type
Diffstat (limited to 'js/public/MemoryMetrics.h')
-rw-r--r--js/public/MemoryMetrics.h23
1 files changed, 7 insertions, 16 deletions
diff --git a/js/public/MemoryMetrics.h b/js/public/MemoryMetrics.h
index b0b26631c..dcc886217 100644
--- a/js/public/MemoryMetrics.h
+++ b/js/public/MemoryMetrics.h
@@ -11,7 +11,6 @@
// at your own risk.
#include "mozilla/MemoryReporting.h"
-#include "mozilla/PodOperations.h"
#include "mozilla/TypeTraits.h"
#include <string.h>
@@ -74,15 +73,7 @@ struct ServoSizes
Ignore
};
- ServoSizes()
- : gcHeapUsed(0)
- , gcHeapUnused(0)
- , gcHeapAdmin(0)
- , gcHeapDecommitted(0)
- , mallocHeap(0)
- , nonHeap(0)
- {
- }
+ ServoSizes() = default;
void add(Kind kind, size_t n) {
switch (kind) {
@@ -97,12 +88,12 @@ struct ServoSizes
}
}
- size_t gcHeapUsed;
- size_t gcHeapUnused;
- size_t gcHeapAdmin;
- size_t gcHeapDecommitted;
- size_t mallocHeap;
- size_t nonHeap;
+ size_t gcHeapUsed = 0;
+ size_t gcHeapUnused = 0;
+ size_t gcHeapAdmin = 0;
+ size_t gcHeapDecommitted = 0;
+ size_t mallocHeap = 0;
+ size_t nonHeap = 0;
};
} // namespace JS