Explicitly constructing the std::pair
older gcc compilers (tested on PPC gcc 6) may throw a compilation error if std::pair is not constructed explicitly. <algorithm> header also needs to be included to avoid the following error: error: 'remove_if' is not a member of 'std' Change-Id: Ia7919185614fee1e2e35f2fb25f5fdf05b90e27f Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2149565 Reviewed-by: Michael Lippautz <mlippautz@chromium.org> Commit-Queue: Milad Farazmand <miladfar@ca.ibm.com> Cr-Commit-Position: refs/heads/master@{#67133}
This commit is contained in:
parent
1171a5fcfa
commit
ead618170b
@ -195,7 +195,7 @@ Address PageBackend::AllocateLargePageMemory(size_t size) {
|
||||
const PageMemory pm = pmr->GetPageMemory();
|
||||
Unprotect(allocator_, pm);
|
||||
page_memory_region_tree_.Add(pmr.get());
|
||||
large_page_memory_regions_.insert({pmr.get(), std::move(pmr)});
|
||||
large_page_memory_regions_.insert(std::make_pair(pmr.get(), std::move(pmr)));
|
||||
return pm.writeable_region().base();
|
||||
}
|
||||
|
||||
|
@ -4,6 +4,7 @@
|
||||
|
||||
#include "src/heap/cppgc/prefinalizer-handler.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <memory>
|
||||
|
||||
#include "src/base/platform/platform.h"
|
||||
|
Loading…
Reference in New Issue
Block a user