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.

Project coverage is 63.76%. Comparing base (0246761) to head (4c5fcfd).

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 ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3148      +/-   ##
==========================================
- Coverage   63.80%   63.76%   -0.04%     
==========================================
  Files         549      549              
  Lines       78833    78877      +44     
==========================================
- Hits        50300    50298       -2     
- Misses      25144    25188      +44     
- Partials     3389     3391       +2     
Flag Coverage Δ
contribs/gnodev 61.16% <ø> (ø)
contribs/gnofaucet 14.82% <ø> (-0.95%) ⬇️
gnovm 67.86% <10.63%> (-0.09%) ⬇️
misc/genstd 79.72% <ø> (ø)
tm2 62.42% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.


🚨 Try these New Features:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📦 🤖 gnovm Issues or PRs gnovm related
Projects
Status: Triage
Development

Successfully merging this pull request may close these issues.

1 participant