Skip to content

Commit

Permalink
[vm] Increase alignment in the blob container format to 16k.
Browse files Browse the repository at this point in the history
This accounts for the larger alignment required by mmap on ARM macOS.

Bug: #42534
Change-Id: Ie58732924d5a7287f2736696a6db0ddce7d308c1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/153382
Commit-Queue: Ryan Macnak <rmacnak@google.com>
Reviewed-by: Régis Crelier <regis@google.com>
  • Loading branch information
rmacnak-google authored and commit-bot@chromium.org committed Jul 6, 2020
1 parent 901fa79 commit 935b69e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/bin/snapshot_utils.cc
Expand Up @@ -22,7 +22,7 @@ namespace dart {
namespace bin {

static const int64_t kAppSnapshotHeaderSize = 5 * kInt64Size;
static const int64_t kAppSnapshotPageSize = 4 * KB;
static const int64_t kAppSnapshotPageSize = 16 * KB;

class MappedAppSnapshot : public AppSnapshot {
public:
Expand Down

0 comments on commit 935b69e

Please sign in to comment.