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

fix allocator corruption for large sizes #7338

Merged
merged 3 commits into from
Mar 17, 2018
Merged

Conversation

jcosborn
Copy link
Contributor

This prevents fl from overflowing either from coalescing or just being in the largest bin.

@Araq
Copy link
Member

Araq commented Mar 16, 2018

Pure gold. :-) Can we have a test case for this too?

@Araq
Copy link
Member

Araq commented Mar 16, 2018

You cannot coalesce huge blocks, they are returned back to the OS immediately and must not be merged into larger blocks.

@jcosborn
Copy link
Contributor Author

It's not coalescing HugeChunk's, just large BigChunk's, but being careful to split them if they exceed MaxBigChunkSize.

@Araq
Copy link
Member

Araq commented Mar 16, 2018

Ok, my bad.

@Araq
Copy link
Member

Araq commented Mar 17, 2018

Unrelated test case failure. Ready to merge? Sure it's correct now? ;-)

@jcosborn
Copy link
Contributor Author

Yes, please merge. There may be room for improvement with the coalescing, but at least I think it won't crash.

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