Azer0s / Azer0s/pogmalloc

TODO: give back memory on real heap

Open
#8 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
2
Forks
0
PR merge metrics
No merged PRs in 30d

Description

This should probably work with just `sbrk(negative_num)`
...I suppose

Also come up with a strategy when to do this.
Maybe when freed > alloced? This will require another callback in the allocators. For the static heap we'll need a dummy callback.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the real-heap path that uses sbrk and the allocator callbacks mentioned in the issue. Read how the static heap and allocators currently handle freeing, then determine a strategy for when negative sbrk should be called and how the static heap's dummy callback fits. Done means real-heap memory is returned safely without breaking static-heap behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
operating-systems
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.