Skip to content

Conversation

MichaelBell
Copy link
Contributor

Currently malloc won't allocate the last 4KB of RAM because the check against StackLimit uses >= not >, this fixes that.

Additionally in "optimistic" mode the allocation should fail if the last allocation took the heap end to the limit, not if the current allocation is going to do so.

This fixes issue #264.

@kilograham kilograham linked an issue Mar 22, 2021 that may be closed by this pull request
@MichaelBell MichaelBell changed the base branch from develop to develop-1.1.1 March 22, 2021 18:43
@kilograham kilograham merged commit a47d6d6 into raspberrypi:develop-1.1.1 Mar 24, 2021
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.

Can't malloc the last 4KB of the heap

2 participants