diff options
author | trav90 <travawine@palemoon.org> | 2018-09-12 05:41:41 -0500 |
---|---|---|
committer | trav90 <travawine@palemoon.org> | 2018-09-12 05:41:41 -0500 |
commit | 847f12e88faf1b9a34d0b6fa9b262dfed209aedb (patch) | |
tree | cfec69fc3613d921f0f466574f8c67695f246a96 /js/src/gc/GCInternals.h | |
parent | 2f64d5eeecdeb995504748e3da37964d22cc27f0 (diff) | |
download | UXP-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/src/gc/GCInternals.h')
-rw-r--r-- | js/src/gc/GCInternals.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/js/src/gc/GCInternals.h b/js/src/gc/GCInternals.h index 4919b87a5..e8df0bb70 100644 --- a/js/src/gc/GCInternals.h +++ b/js/src/gc/GCInternals.h @@ -9,7 +9,6 @@ #include "mozilla/ArrayUtils.h" #include "mozilla/Maybe.h" -#include "mozilla/PodOperations.h" #include "jscntxt.h" @@ -102,9 +101,9 @@ struct TenureCountCache static const size_t EntryShift = 4; static const size_t EntryCount = 1 << EntryShift; - TenureCount entries[EntryCount]; + TenureCount entries[EntryCount] = {}; // zeroes - TenureCountCache() { mozilla::PodZero(this); } + TenureCountCache() = default; HashNumber hash(ObjectGroup* group) { #if JS_BITS_PER_WORD == 32 |