Skip to content

Probe {riscv,loongarch,arm}64 virtual memory address - #133380

Merged
janvorli merged 10 commits into
dotnet:mainfrom
am11:patch-60
Sep 16, 2026
Merged

janvorli merged 10 commits into
dotnet:mainfrom
am11:patch-60

Conversation

@am11

@am11 am11 commented Sep 7, 2026

Copy link
Copy Markdown
Member

Modern riscv64 systems are using sv48 and GC remains limited to sv39. PR probes it at run-time.

@dotnet-policy-service dotnet-policy-service Bot added the community-contribution Indicates that the PR has been added by a community member label Sep 7, 2026
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).
13 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @anicka-net, @dotnet/gc
See info in area-owners.md if you want to be subscribed.

@am11 am11 added the arch-riscv Related to the RISC-V architecture label Sep 7, 2026
@am11

am11 commented Sep 7, 2026

Copy link
Copy Markdown
Member Author

cc @t-mustafin, @dotnet/samsung

Comment thread src/coreclr/gc/unix/gcenv.unix.cpp Resolved
@janvorli

janvorli commented Sep 8, 2026

Copy link
Copy Markdown
Member

It seems we need similar treatment for arm64 too (e.g. for Android). See #85556 (comment) that mentions that Android ships with 39-bit VA size.
Would you mind extending this PR to handle that?

@am11 am11 changed the title Probe riscv64 virtual memory address Probe riscv64 and arm64 virtual memory address Sep 8, 2026
@am11 am11 added the arch-arm64 label Sep 8, 2026
Comment thread src/coreclr/gc/unix/gcenv.unix.cpp Resolved
@am11 am11 changed the title Probe riscv64 and arm64 virtual memory address Probe {riscv,loongarch,arm}64 virtual memory address Sep 8, 2026
@am11

am11 commented Sep 8, 2026

Copy link
Copy Markdown
Member Author

cc @LuckyXu-HF, @shushanhf, included LA64.

@janvorli janvorli left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, thank you!

Comment thread src/coreclr/gc/unix/gcenv.unix.cpp Resolved

@shushanhf shushanhf left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LA64 LGTM, thanks

@am11
am11 requested a review from janvorli September 15, 2026 12:47
Comment thread src/coreclr/gc/unix/gcenv.unix.cpp Resolved

@janvorli janvorli left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, thank you!

@janvorli
janvorli merged commit ca72cbf into dotnet:main Sep 16, 2026
107 of 110 checks passed
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Sep 17, 2026
@am11
am11 deleted the patch-60 branch September 17, 2026 08:12
jtschuster pushed a commit to jtschuster/runtime that referenced this pull request Sep 18, 2026
Modern riscv64 systems are using sv48 and GC remains limited to sv39. PR
probes it at run-time.
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 17, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

arch-arm64 arch-loongarch64 arch-riscv Related to the RISC-V architecture area-GC-coreclr community-contribution Indicates that the PR has been added by a community member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants