-
Notifications
You must be signed in to change notification settings - Fork 379
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
fix(gnovm): save object when refCount changed #2992
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅ 📢 Thoughts on this report? Let us know! |
2dfe9bf
to
acf12f5
Compare
ed24417
to
2368fed
Compare
d81df2c
to
ff7e012
Compare
Hello @omarsy . There is a merge conflict with master in gno.land/pkg/sdk/vm/gas_test.go . Can you resolve it? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The main change is to one file gnovm/pkg/gnolang/realm.go . The rest of the changes are tests. All CI checks pass.
Removed the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just start looking.
@@ -509,7 +512,7 @@ func (rlm *Realm) decRefDeletedDescendants(store Store, oo Object) { | |||
if rc == 0 { | |||
rlm.decRefDeletedDescendants(store, child) | |||
} else if rc > 0 { | |||
// do nothing | |||
rlm.MarkDirty(child) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
curious isn't it marked in previous phases?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, it isn't marked as dirty; we change the reference count, but it is never saved.
Merge RequirementsThe following requirements must be fulfilled before a pull request can be merged. These requirements are defined in this configuration file. Automated Checks🔴 Maintainers must be able to edit this pull request Details
Manual Checks
Details
|
This PR a fix in the gnovm to ensure that objects are saved correctly when their reference count changes.
closes: #2266 #1543
Contributors' checklist...
BREAKING CHANGE: xxx
message was included in the description