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: scan memory, reset allocator #3148

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

petar-dambovaliev
Copy link
Contributor

@petar-dambovaliev petar-dambovaliev commented Nov 18, 2024

This is as an alternative solution to garbage collection to reclaim memory.
If an allocation is about to fail, walk all blocks in the machine and their values and recalculate how much memory is used.

@github-actions github-actions bot added the 📦 🤖 gnovm Issues or PRs gnovm related label Nov 18, 2024
Copy link

codecov bot commented Nov 18, 2024

Codecov Report

Attention: Patch coverage is 10.63830% with 42 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
gnovm/pkg/gnolang/alloc.go 2.50% 38 Missing and 1 partial ⚠️
gnovm/pkg/gnolang/machine.go 25.00% 2 Missing and 1 partial ⚠️

📢 Thoughts on this report? Let us know!

@petar-dambovaliev
Copy link
Contributor Author

Pending @jaekwon's approval for this approach and i will add tests for this functionality.

@Kouteki Kouteki added the in focus Core team is prioritizing this work label Nov 22, 2024
@Kouteki Kouteki added this to the 🚀 Mainnet launch milestone Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in focus Core team is prioritizing this work 📦 🤖 gnovm Issues or PRs gnovm related
Projects
Status: In Review
Development

Successfully merging this pull request may close these issues.

2 participants