зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1412648 - Initialize some uninitialized fields in tools/profiler/. r=mstange
This commit is contained in:
Родитель
357ebb9638
Коммит
b15e4b2827
|
@ -25,7 +25,7 @@ class ChunkedJSONWriteFunc : public mozilla::JSONWriteFunc
|
|||
public:
|
||||
friend class SpliceableJSONWriter;
|
||||
|
||||
ChunkedJSONWriteFunc() {
|
||||
ChunkedJSONWriteFunc() : mChunkPtr{nullptr}, mChunkEnd{nullptr} {
|
||||
AllocChunk(kChunkSize);
|
||||
}
|
||||
|
||||
|
|
|
@ -27,8 +27,10 @@ public:
|
|||
double aTime = 0)
|
||||
: mMarkerName(strdup(aMarkerName))
|
||||
, mPayload(Move(aPayload))
|
||||
, mNext{nullptr}
|
||||
, mTime(aTime)
|
||||
{}
|
||||
, mGenID{0}
|
||||
{}
|
||||
|
||||
void SetGeneration(uint32_t aGenID) { mGenID = aGenID; }
|
||||
|
||||
|
|
|
@ -31,6 +31,7 @@ ThreadInfo::ThreadInfo(const char* aName,
|
|||
, mPlatformData(AllocPlatformData(aThreadId))
|
||||
, mStackTop(aStackTop)
|
||||
, mIsBeingProfiled(false)
|
||||
, mFirstSavedStreamedSampleTime{0.0}
|
||||
, mContext(nullptr)
|
||||
, mJSSampling(INACTIVE)
|
||||
, mLastSample()
|
||||
|
|
|
@ -694,7 +694,7 @@ static const char* const kMainThreadName = "GeckoMain";
|
|||
class Registers
|
||||
{
|
||||
public:
|
||||
Registers() {}
|
||||
Registers() : mPC{nullptr}, mSP{nullptr}, mFP{nullptr}, mLR{nullptr} {}
|
||||
|
||||
#if defined(HAVE_NATIVE_UNWIND)
|
||||
// Fills in mPC, mSP, mFP, mLR, and mContext for a synchronous sample.
|
||||
|
@ -731,7 +731,7 @@ struct NativeStack
|
|||
size_t mCount; // Number of entries filled.
|
||||
|
||||
NativeStack()
|
||||
: mCount(0)
|
||||
: mPCs(), mSPs(), mCount(0)
|
||||
{}
|
||||
};
|
||||
|
||||
|
@ -2499,6 +2499,10 @@ profiler_get_start_params(int* aEntries, double* aInterval, uint32_t* aFeatures,
|
|||
|
||||
AutoSetProfilerEnvVarsForChildProcess::AutoSetProfilerEnvVarsForChildProcess(
|
||||
MOZ_GUARD_OBJECT_NOTIFIER_ONLY_PARAM_IN_IMPL)
|
||||
: mSetEntries()
|
||||
, mSetInterval()
|
||||
, mSetFeaturesBitfield()
|
||||
, mSetFilters()
|
||||
{
|
||||
MOZ_GUARD_OBJECT_NOTIFIER_INIT;
|
||||
|
||||
|
|
|
@ -109,7 +109,7 @@ public:
|
|||
const std::string &GetArch() const { return mArch; }
|
||||
|
||||
private:
|
||||
SharedLibrary() {}
|
||||
SharedLibrary() : mStart{0}, mEnd{0}, mOffset{0} {}
|
||||
|
||||
uintptr_t mStart;
|
||||
uintptr_t mEnd;
|
||||
|
|
Загрузка…
Ссылка в новой задаче