зеркало из 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 kWrite = 10000;
|
||||
|
||||
mutable mozilla::Atomic<uint32_t> mState;
|
||||
mutable mozilla::Atomic<uint32_t> mIsWritable;
|
||||
mutable mozilla::Atomic<uint32_t,
|
||||
mozilla::SequentiallyConsistent,
|
||||
mozilla::recordreplay::Behavior::DontPreserve> mState;
|
||||
mutable mozilla::Atomic<uint32_t,
|
||||
mozilla::SequentiallyConsistent,
|
||||
mozilla::recordreplay::Behavior::DontPreserve> mIsWritable;
|
||||
};
|
||||
#endif
|
||||
|
||||
|
|
|
@ -104,12 +104,16 @@ public:
|
|||
uintptr_t(getpid()), uintptr_t(pthread_self()));
|
||||
}
|
||||
|
||||
Atomic<int32_t> mAllocCount;
|
||||
Atomic<int32_t> mReallocCount;
|
||||
Atomic<int32_t> mFreeCount;
|
||||
Atomic<int32_t> mShareCount;
|
||||
Atomic<int32_t> mAdoptCount;
|
||||
Atomic<int32_t> mAdoptFreeCount;
|
||||
typedef Atomic<int32_t,
|
||||
mozilla::SequentiallyConsistent,
|
||||
mozilla::recordreplay::Behavior::DontPreserve> AtomicInt;
|
||||
|
||||
AtomicInt mAllocCount;
|
||||
AtomicInt mReallocCount;
|
||||
AtomicInt mFreeCount;
|
||||
AtomicInt mShareCount;
|
||||
AtomicInt mAdoptCount;
|
||||
AtomicInt mAdoptFreeCount;
|
||||
};
|
||||
static nsStringStats gStringStats;
|
||||
#define STRING_STAT_INCREMENT(_s) (gStringStats.m ## _s ## Count)++
|
||||
|
|
Загрузка…
Ссылка в новой задаче