Skip to content

Fix infinite loop in allocator#214

Merged
ahsanbarkati merged 2 commits intomasterfrom
ahsan/allocator-fix
Nov 2, 2020
Merged

Fix infinite loop in allocator#214
ahsanbarkati merged 2 commits intomasterfrom
ahsan/allocator-fix

Conversation

@ahsanbarkati
Copy link
Contributor

@ahsanbarkati ahsanbarkati commented Nov 2, 2020

If we create a new allocator starting with zero size, then addBufferWithMinSize() will run into an infinite loop, trying to achieve the required buffer size by doubling the pagesize (which is zero).


This change is Reviewable

@ahsanbarkati ahsanbarkati merged commit cd75c35 into master Nov 2, 2020
@ahsanbarkati ahsanbarkati deleted the ahsan/allocator-fix branch November 2, 2020 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants