diff options
author | Moonchild <mcwerewolf@gmail.com> | 2018-09-16 12:01:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-16 12:01:55 +0200 |
commit | 08dd8ff76063097d7ceea3ec2877028e57ede211 (patch) | |
tree | 467ec1506f7889c2faeb0280b8c7de4adc4abe7b /js/src/gc/Statistics.h | |
parent | 351ffa462d2314c4b60369e2ba0f13b5d90f03b5 (diff) | |
parent | 0712ac7f81a455b21e0065b6a212b64385835e5e (diff) | |
download | UXP-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/src/gc/Statistics.h')
-rw-r--r-- | js/src/gc/Statistics.h | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/js/src/gc/Statistics.h b/js/src/gc/Statistics.h index ca1969b2c..08a2810cf 100644 --- a/js/src/gc/Statistics.h +++ b/js/src/gc/Statistics.h @@ -10,7 +10,6 @@ #include "mozilla/EnumeratedArray.h" #include "mozilla/IntegerRange.h" #include "mozilla/Maybe.h" -#include "mozilla/PodOperations.h" #include "jsalloc.h" #include "jsgc.h" @@ -112,29 +111,26 @@ enum Stat { struct ZoneGCStats { /* Number of zones collected in this GC. */ - int collectedZoneCount; + int collectedZoneCount = 0; /* Total number of zones in the Runtime at the start of this GC. */ - int zoneCount; + int zoneCount = 0; /* Number of zones swept in this GC. */ - int sweptZoneCount; + int sweptZoneCount = 0; /* Total number of compartments in all zones collected. */ - int collectedCompartmentCount; + int collectedCompartmentCount = 0; /* Total number of compartments in the Runtime at the start of this GC. */ - int compartmentCount; + int compartmentCount = 0; /* Total number of compartments swept by this GC. */ - int sweptCompartmentCount; + int sweptCompartmentCount = 0; bool isCollectingAllZones() const { return collectedZoneCount == zoneCount; } - ZoneGCStats() - : collectedZoneCount(0), zoneCount(0), sweptZoneCount(0), - collectedCompartmentCount(0), compartmentCount(0), sweptCompartmentCount(0) - {} + ZoneGCStats() = default; }; #define FOR_EACH_GC_PROFILE_TIME(_) \ |