Comment #15 on issue 12689 by lpard...@
microsoft.com: Increase CodeRange size under external code space + sharing pointer compression cage
https://bugs.chromium.org/p/v8/issues/detail?id=12689#c15After the change in #c14 we have been hitting a CHECK in mksnapshot when trying to crosscompile for win-arm64 in x86_64 windows machines. Our temporary mitigation was to turn the max code range size back to 128 Mb for win-arm64. Could you share any insights on why this could be happening? The crash is reproducible most of the time, but sometimes mksnapshot runs successfully. This is the call stack
# Check failed: padded_reservation.InVM(address, params.reservation_size).
#
#
#
#FailureMessage Object: 0000001B69ECA470
==== C stack trace ===============================
v8::base::debug::StackTrace::StackTrace [0x00007FF70F9501EB+27] (o:\v8\src\base\debug\stack_trace_win.cc:173)
v8::platform::`anonymous namespace'::PrintStackTrace [0x00007FF70F8ECD37+39] (o:\v8\src\libplatform\default-platform.cc:29)
V8_Fatal [0x00007FF70F8E570D+221] (o:\v8\src\base\logging.cc:166)
v8::internal::VirtualMemoryCage::InitReservation [0x00007FF70ECF3E1C+1084] (o:\v8\src\utils\allocation.cc:375)
v8::internal::CodeRange::InitReservation [0x00007FF70E87D2F9+281] (o:\v8\src\heap\code-range.cc:140)
v8::internal::CodeRange::EnsureProcessWideCodeRange [0x00007FF70E87D7D0+432] (o:\v8\src\heap\code-range.cc:310)
v8::internal::Heap::SetUp [0x00007FF70E8CA2C7+183] (o:\v8\src\heap\heap.cc:5712)
v8::internal::Isolate::Init [0x00007FF70E85A9ED+1789] (o:\v8\src\execution\isolate.cc:4043)
v8::internal::Isolate::InitWithoutSnapshot [0x00007FF70E85A2E6+22] (o:\v8\src\execution\isolate.cc:3850)
v8::SnapshotCreator::SnapshotCreator [0x00007FF70E6C9ED0+208] (o:\v8\src\api\api.cc:492)
v8::internal::CreateSnapshotDataBlobInternal [0x00007FF70ECDFB23+83] (o:\v8\src\snapshot\snapshot.cc:747)
main [0x00007FF70E6C455B+2011] (o:\v8\src\snapshot\mksnapshot.cc:294)