Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/compile: arch.MAXWIDTH on amd64 out of date? #38734

Open
mdempsky opened this issue Apr 28, 2020 · 0 comments
Open

cmd/compile: arch.MAXWIDTH on amd64 out of date? #38734

mdempsky opened this issue Apr 28, 2020 · 0 comments
Labels
compiler/runtime Issues related to the Go compiler and/or runtime. NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone

Comments

@mdempsky
Copy link
Member

arch.MAXWIDTH = 1 << 50

Most amd64 implementations only support 48 bits of linear address space, but apparently Intel's Ice Lake product line launched last year and support up to 57 bits.

Theoretically fixing this should be as simple as bumping that constant up, but I'm nervous there are other constants that will need to be bumped too. E.g., probably code that uses the (*[big]T)(ptr)[:n:n] idiom might need to be tweaked.

Noticed in discussion on #37805.

/cc @ianlancetaylor

@mdempsky mdempsky added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Apr 28, 2020
@mdempsky mdempsky added this to the Backlog milestone Apr 28, 2020
@gopherbot gopherbot added the compiler/runtime Issues related to the Go compiler and/or runtime. label Jul 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler/runtime Issues related to the Go compiler and/or runtime. NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Projects
Status: Triage Backlog
Development

No branches or pull requests

2 participants