Skip to content

Commit bc21eda

Browse files
rmacnak-googlecommit-bot@chromium.org
authored andcommitted
[vm] Increase alignment in VM-generated ELF to 16k.
ARM64 Mac has 16k pages, so we need snapshot parts to be 16k aligned for our ELF loader to load them via mmap. TEST=ci Bug: #42773 Change-Id: Ifa3d70e453ea72883d821e48cfc76b0d983391f2 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/193821 Commit-Queue: Ryan Macnak <[email protected]> Reviewed-by: Siva Annamalai <[email protected]>
1 parent 2d330c7 commit bc21eda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

runtime/vm/elf.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class Elf : public ZoneAllocated {
3232

3333
Elf(Zone* zone, BaseWriteStream* stream, Type type, Dwarf* dwarf = nullptr);
3434

35-
static constexpr intptr_t kPageSize = 4096;
35+
static constexpr intptr_t kPageSize = 16 * KB;
3636
static constexpr uword kNoSectionStart = 0;
3737

3838
bool IsStripped() const { return dwarf_ == nullptr; }

0 commit comments

Comments
 (0)