Bug 1207696 Part 4l - Don't record some debugging/statistics atomics, r=froydnj.

--HG--
extra : rebase_source : 401fdf6385e81b72d2ceee84b5ee1a9aac056aaa
This commit is contained in:
Brian Hackett 2018-07-21 14:26:58 +00:00
Родитель fa9ad309f5
Коммит 312bcb5d90
2 изменённых файлов: 16 добавлений и 8 удалений

Просмотреть файл

@ -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)++