mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 13:21:05 +00:00
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:
parent
6da8e045b1
commit
4721b46f61
@ -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
|
||||
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user