зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1207696 Part 4l - Don't record some debugging/statistics atomics, r=froydnj.
--HG-- extra : rebase_source : 401fdf6385e81b72d2ceee84b5ee1a9aac056aaa
This commit is contained in:
Родитель
fa9ad309f5
Коммит
312bcb5d90
|
@ -186,8 +186,12 @@ private:
|
||||||
static const uint32_t kReadMax = 9999;
|
static const uint32_t kReadMax = 9999;
|
||||||
static const uint32_t kWrite = 10000;
|
static const uint32_t kWrite = 10000;
|
||||||
|
|
||||||
mutable mozilla::Atomic<uint32_t> mState;
|
mutable mozilla::Atomic<uint32_t,
|
||||||
mutable mozilla::Atomic<uint32_t> mIsWritable;
|
mozilla::SequentiallyConsistent,
|
||||||
|
mozilla::recordreplay::Behavior::DontPreserve> mState;
|
||||||
|
mutable mozilla::Atomic<uint32_t,
|
||||||
|
mozilla::SequentiallyConsistent,
|
||||||
|
mozilla::recordreplay::Behavior::DontPreserve> mIsWritable;
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -104,12 +104,16 @@ public:
|
||||||
uintptr_t(getpid()), uintptr_t(pthread_self()));
|
uintptr_t(getpid()), uintptr_t(pthread_self()));
|
||||||
}
|
}
|
||||||
|
|
||||||
Atomic<int32_t> mAllocCount;
|
typedef Atomic<int32_t,
|
||||||
Atomic<int32_t> mReallocCount;
|
mozilla::SequentiallyConsistent,
|
||||||
Atomic<int32_t> mFreeCount;
|
mozilla::recordreplay::Behavior::DontPreserve> AtomicInt;
|
||||||
Atomic<int32_t> mShareCount;
|
|
||||||
Atomic<int32_t> mAdoptCount;
|
AtomicInt mAllocCount;
|
||||||
Atomic<int32_t> mAdoptFreeCount;
|
AtomicInt mReallocCount;
|
||||||
|
AtomicInt mFreeCount;
|
||||||
|
AtomicInt mShareCount;
|
||||||
|
AtomicInt mAdoptCount;
|
||||||
|
AtomicInt mAdoptFreeCount;
|
||||||
};
|
};
|
||||||
static nsStringStats gStringStats;
|
static nsStringStats gStringStats;
|
||||||
#define STRING_STAT_INCREMENT(_s) (gStringStats.m ## _s ## Count)++
|
#define STRING_STAT_INCREMENT(_s) (gStringStats.m ## _s ## Count)++
|
||||||
|
|
Загрузка…
Ссылка в новой задаче