diff options
Diffstat (limited to 'standalone/bytemap.h')
-rw-r--r-- | standalone/bytemap.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/standalone/bytemap.h b/standalone/bytemap.h index 248e096d07b..e0d54f4e597 100644 --- a/standalone/bytemap.h +++ b/standalone/bytemap.h @@ -17,9 +17,10 @@ namespace scudo { template <uptr Size> class FlatByteMap { public: - void init() { DCHECK(Size == 0 || Map[0] == 0); } + void initLinkerInitialized() {} + void init() { memset(Map, 0, sizeof(Map)); } - void unmapTestOnly() { memset(Map, 0, Size); } + void unmapTestOnly() {} void set(uptr Index, u8 Value) { DCHECK_LT(Index, Size); @@ -35,7 +36,7 @@ public: void enable() {} private: - u8 Map[Size] = {}; + u8 Map[Size]; }; } // namespace scudo |