Skip to content

Updates android builds to always use 16KB memory pages#121

Merged
ted-xie merged 1 commit into
bazelbuild:mainfrom
SvenSchindler:update-builds-to-16KB-memory-pages
May 15, 2026
Merged

Updates android builds to always use 16KB memory pages#121
ted-xie merged 1 commit into
bazelbuild:mainfrom
SvenSchindler:update-builds-to-16KB-memory-pages

Conversation

@SvenSchindler
Copy link
Copy Markdown
Contributor

Description

Android expects apps to support 16KB memory page alignments, otherwise it'll complain. This PR updates the linking flags to default to 16KB memory pages. For more details see https://developer.android.com/guide/practices/page-sizes.

@google-cla
Copy link
Copy Markdown

google-cla Bot commented Feb 5, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

flags = ["-Wl,--fix-cortex-a8", "-march=armv7-a"],
features = ["crosstool_cpu_arm"],
),
flag_set(
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we need to keep this flag set anymore but please correct me if I'm wrong 🙏 .

@ted-xie
Copy link
Copy Markdown
Collaborator

ted-xie commented May 6, 2026

@SvenSchindler Interesting PR. Overall LGTM, but please sign the Google CLA if you still would like for this PR to be merged.

@ted-xie
Copy link
Copy Markdown
Collaborator

ted-xie commented May 15, 2026

LGTM. There is a chance we'll have to feature-flag this since it could increase NDK memory footprint in pathological cases.

@ted-xie ted-xie merged commit efc0c19 into bazelbuild:main May 15, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants