Skip to content

Conversation

brooksdavis
Copy link
Contributor

This code called sbrk(4000000) and beyond error checking ignored the result meaning the 4MB of address space allocated could never be used without another call to sbrk and reference to INITIAL_MEMORY_PREALLOCATION_SIZE, but nothing in the repo does either.

This code called sbrk(4000000) and beyond error checking ignored
the result meaning the 4MB of address space allocated could
never be used without another call to sbrk and reference to
INITIAL_MEMORY_PREALLOCATION_SIZE, but nothing in the repo does
either.
freebsd-git pushed a commit to freebsd/freebsd-ports that referenced this pull request Dec 11, 2023
This code called sbrk(4000000) and beyond error checking ignored
the result meaning the 4MB of address space allocated could
never be used without another call to sbrk and reference to
INITIAL_MEMORY_PREALLOCATION_SIZE, but nothing in the repo does
either.

Submitted upstream as stp/stp#474

Approved by:	arrowd (maintainer)
Sponsored by:	DARPA
Differential Revision:	https://reviews.freebsd.org/D42978
@TrevorHansen TrevorHansen merged commit f399882 into stp:master Dec 12, 2023
@TrevorHansen
Copy link
Member

Thanks for investigating, @brooksdavis . I never understood what this does, but was too afraid to remove it.

@brooksdavis brooksdavis deleted the remove-sbrk branch January 18, 2024 23:51
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