summaryrefslogtreecommitdiffstats
path: root/js/public/MemoryMetrics.h
diff options
context:
space:
mode:
authorMoonchild <mcwerewolf@gmail.com>2018-09-16 12:01:55 +0200
committerGitHub <noreply@github.com>2018-09-16 12:01:55 +0200
commit08dd8ff76063097d7ceea3ec2877028e57ede211 (patch)
tree467ec1506f7889c2faeb0280b8c7de4adc4abe7b /js/public/MemoryMetrics.h
parent351ffa462d2314c4b60369e2ba0f13b5d90f03b5 (diff)
parent0712ac7f81a455b21e0065b6a212b64385835e5e (diff)
downloadUXP-08dd8ff76063097d7ceea3ec2877028e57ede211.tar
UXP-08dd8ff76063097d7ceea3ec2877028e57ede211.tar.gz
UXP-08dd8ff76063097d7ceea3ec2877028e57ede211.tar.lz
UXP-08dd8ff76063097d7ceea3ec2877028e57ede211.tar.xz
UXP-08dd8ff76063097d7ceea3ec2877028e57ede211.zip
Merge pull request #767 from trav90/class-memaccess-errors
Fix more -Wclass-memaccess warnings (part 2)
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