Bug 1724997 - Fix a typo in a constant's name. r=pehrsons

Differential Revision: https://phabricator.services.mozilla.com/D122736
This commit is contained in:
Paul Adenot 2021-08-26 09:15:39 +00:00
parent 6da8e045b1
commit 4721b46f61
2 changed files with 3 additions and 3 deletions

View File

@ -46,7 +46,7 @@ class AsyncLogger {
enum AsyncLoggerOutputMode { MOZLOG, PROFILER };
struct TextPayload {
char mPayload[PAYLOAD_TOTAL_SIZE - MPSC_MSG_RESERVERD];
char mPayload[PAYLOAD_TOTAL_SIZE - MPSC_MSG_RESERVED];
};
// The order of the fields is important here to minimize padding.
@ -77,7 +77,7 @@ class AsyncLogger {
};
static constexpr size_t scRemainingSpaceForName =
PAYLOAD_TOTAL_SIZE - offsetof(MembersWithChar, c) -
((MPSC_MSG_RESERVERD + alignof(MembersWithChar) - 1) &
((MPSC_MSG_RESERVED + alignof(MembersWithChar) - 1) &
~(alignof(MembersWithChar) - 1));
#undef MEMBERS_EXCEPT_NAME

View File

@ -17,7 +17,7 @@ namespace mozilla {
// In our scenario, the producer threads are real-time, they can't block. The
// consummer thread runs every now and then and empties the queue to a log
// file, on disk.
const size_t MPSC_MSG_RESERVERD = sizeof(std::atomic<void*>);
const size_t MPSC_MSG_RESERVED = sizeof(std::atomic<void*>);
template <typename T>
class MPSCQueue {