diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:35:29 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:35:29 +0000 |
commit | 59203c63bb777a3bacec32fb8830fba33540e809 (patch) | |
tree | 58298e711c0ff0575818c30485b44a2f21bf28a0 /memory/replace/logalloc/replay | |
parent | Adding upstream version 126.0.1. (diff) | |
download | firefox-59203c63bb777a3bacec32fb8830fba33540e809.tar.xz firefox-59203c63bb777a3bacec32fb8830fba33540e809.zip |
Adding upstream version 127.0.upstream/127.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'memory/replace/logalloc/replay')
-rw-r--r-- | memory/replace/logalloc/replay/Replay.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/memory/replace/logalloc/replay/Replay.cpp b/memory/replace/logalloc/replay/Replay.cpp index a1b3217419..191a192bb8 100644 --- a/memory/replace/logalloc/replay/Replay.cpp +++ b/memory/replace/logalloc/replay/Replay.cpp @@ -458,7 +458,7 @@ class Distribution { mTotalRequests++; } - void printDist(intptr_t std_err) { + void printDist(platform_handle_t std_err) { MOZ_ASSERT(mMaxSize); // The translation to turn a slot index into a memory request size. @@ -533,7 +533,7 @@ class SMapsReader : private FdReader { return Some(SMapsReader(FdReader(fd, true))); } - Maybe<MemoryMap> readMap(intptr_t aStdErr) { + Maybe<MemoryMap> readMap(platform_handle_t aStdErr) { // This is not very tolerant of format changes because things like // parseNumber will crash if they get a bad value. TODO: make this // soft-fail. @@ -615,7 +615,7 @@ class Replay { Replay() { #ifdef _WIN32 // See comment in FdPrintf.h as to why native win32 handles are used. - mStdErr = reinterpret_cast<intptr_t>(GetStdHandle(STD_ERROR_HANDLE)); + mStdErr = GetStdHandle(STD_ERROR_HANDLE); #else mStdErr = fileno(stderr); #endif @@ -1044,7 +1044,7 @@ class Replay { } } - intptr_t mStdErr; + platform_handle_t mStdErr; size_t mOps = 0; // The number of slots that have been used. It is used to iterate over slots |