Skip to content

Use IncTo and refactor foreach gen #365

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

Closed

Conversation

JeremyMahieu
Copy link

@JeremyMahieu JeremyMahieu commented Jul 28, 2022

Replaced weird usage of Inc() with IncTo() which seems to be made for this exact case.
And slight compaction of code with the foreach loop statement.

Sidenote, GC.MaxGeneration is designed to increase during runtime. If it does, it would throw each cycle. However in practice GC.MaxGeneration is hardcoded to be 2. This would solve this (non-existing) problem however no new counters will be made for the newer generation that didn't exist at the start of the runtime.

@sandersaares
Copy link
Member

Thank you for the contribution! I have manually merged the IncTo changes, though not the ForEach loop, as that felt a bit "different not better".

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