We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5caf5a6 commit 890c492Copy full SHA for 890c492
lld/MachO/Driver.cpp
@@ -296,7 +296,8 @@ using DeferredFiles = std::vector<DeferredFile>;
296
// This code forces the page-ins on multiple threads so
297
// the process is not stalled waiting on disk buffer i/o.
298
void multiThreadedPageInBackground(const DeferredFiles &deferred) {
299
- static size_t pageSize = Process::getPageSizeEstimate(), totalBytes;
+ static const size_t pageSize = Process::getPageSizeEstimate();
300
+ size_t totalBytes = 0;
301
static std::mutex mutex;
302
size_t index = 0;
303
0 commit comments