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

make max array count I64_MAX #4674

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

laytan
Copy link
Collaborator

@laytan laytan commented Jan 10, 2025

Closes #4658

@laytan
Copy link
Collaborator Author

laytan commented Jan 10, 2025

So only MacOS arm seems to be fine with this massive array. Linux and BSDs crash fail linking, Windows crashes, MacOS Intel gets stuck compiling or linking the program.

@laytan
Copy link
Collaborator Author

laytan commented Jan 10, 2025

Should figure out a max they all generally like and go with that.

@gingerBill
Copy link
Member

The original restriction was probably arbitrary but it was to prevent a few bugs in LLVM due to initialization issues. Large arrays in LLVM tend to make the entire thing go extremely slow. It's hard to replicate because it's been quite a long time now and I cannot remember the precise circumstances to do it.

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.

'Array count too large' when declaring large inline arrays in structs
2 participants