mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
Bug 1671114 - pt 6. Use default values for Replay members r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D104178
This commit is contained in:
parent
fb1e0178af
commit
1d1cea24f3
@ -602,13 +602,7 @@ class SMapsReader : private FdReader {
|
|||||||
/* Class to handle dispatching the replay function calls to replace-malloc. */
|
/* Class to handle dispatching the replay function calls to replace-malloc. */
|
||||||
class Replay {
|
class Replay {
|
||||||
public:
|
public:
|
||||||
Replay()
|
Replay() {
|
||||||
: mOps(0),
|
|
||||||
mNumUsedSlots(0),
|
|
||||||
mTotalRequestedSize(0),
|
|
||||||
mTotalAllocatedSize(0),
|
|
||||||
mCalculateSlop(false),
|
|
||||||
mDoMemset(false) {
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
// See comment in FdPrintf.h as to why native win32 handles are used.
|
// See comment in FdPrintf.h as to why native win32 handles are used.
|
||||||
mStdErr = reinterpret_cast<intptr_t>(GetStdHandle(STD_ERROR_HANDLE));
|
mStdErr = reinterpret_cast<intptr_t>(GetStdHandle(STD_ERROR_HANDLE));
|
||||||
@ -1027,19 +1021,19 @@ class Replay {
|
|||||||
}
|
}
|
||||||
|
|
||||||
intptr_t mStdErr;
|
intptr_t mStdErr;
|
||||||
size_t mOps;
|
size_t mOps = 0;
|
||||||
|
|
||||||
// The number of slots that have been used. It is used to iterate over slots
|
// The number of slots that have been used. It is used to iterate over slots
|
||||||
// without accessing those we haven't initialised.
|
// without accessing those we haven't initialised.
|
||||||
size_t mNumUsedSlots;
|
size_t mNumUsedSlots = 0;
|
||||||
|
|
||||||
MemSlotList mSlots;
|
MemSlotList mSlots;
|
||||||
size_t mTotalRequestedSize;
|
size_t mTotalRequestedSize = 0;
|
||||||
size_t mTotalAllocatedSize;
|
size_t mTotalAllocatedSize = 0;
|
||||||
// Whether to calculate slop for all allocations over the runtime of a
|
// Whether to calculate slop for all allocations over the runtime of a
|
||||||
// process.
|
// process.
|
||||||
bool mCalculateSlop;
|
bool mCalculateSlop = false;
|
||||||
bool mDoMemset;
|
bool mDoMemset = false;
|
||||||
|
|
||||||
#ifdef XP_LINUX
|
#ifdef XP_LINUX
|
||||||
// If we have a failure reading smaps info then this is used to disable that
|
// If we have a failure reading smaps info then this is used to disable that
|
||||||
|
Loading…
Reference in New Issue
Block a user