Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: garbage collection #26

Merged
merged 5 commits into from
Apr 9, 2024
Merged

feat: garbage collection #26

merged 5 commits into from
Apr 9, 2024

Conversation

shenyih0ng
Copy link
Owner

@shenyih0ng shenyih0ng commented Apr 9, 2024

Description

This PR implements a buddy allocator for the heap alongside a mark-sweep garbage collector. Right now, the heap size is fixed at 4096 words = 4096 * 8 bytes, I will add a frontend option to dynamically change heap size in the next PR.

Standardize all heap address to be byte offset from the start address
instead of word offset
@shenyih0ng shenyih0ng self-assigned this Apr 9, 2024
@shenyih0ng shenyih0ng marked this pull request as ready for review April 9, 2024 14:15
@shenyih0ng shenyih0ng merged commit c847e08 into master Apr 9, 2024
1 check passed
@shenyih0ng shenyih0ng deleted the feat/mark-sweep branch April 9, 2024 14:20
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.

1 participant