Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
matheusmoreira
on Feb 6, 2024
|
parent
|
context
|
favorite
| on:
Visual overview of a custom malloc() implementatio...
I understand why the use of sbrk is unfortunate but what's wrong with the representation? Are there better ones?
masklinn
on Feb 6, 2024
[–]
The heap growing towards the stack is a property of the heap segment (used by brk/sbrk). mmap is not bound to this model, and unless used with MAP_FIXED can associate the allocation with virtual addresses anywhere in the address space.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: