-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Handle https://github.com/neo-project/neo/pull/3520 #3521
base: master
Are you sure you want to change the base?
Conversation
We better just do #3517 solving this and many other potential problems. |
I agree. Yet we can still do more to avoid GC. I have changed my strategy in this PR. We can check every dropped compound item to avoid graph searches. |
src/Neo.VM/ExecutionEngine.cs
Outdated
@@ -288,7 +288,7 @@ public T Pop<T>() where T : StackItem | |||
/// </summary> | |||
protected virtual void PostExecuteInstruction(Instruction instruction) | |||
{ | |||
if (ReferenceCounter.Count < Limits.MaxStackSize) return; | |||
if (ReferenceCounter.Count <= Limits.MaxStackSize) return; |
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.
please make this one a seperate pr.
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.
I am still considering it. If <= is not applied, this PR makes no sense.
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.
I am still considering it. If <= is not applied, this PR makes no sense.
you can make <= merhged first, then do this pr. If you mixed together, will be slower to review since it contains two different purposes.
Description
Handles
VwEAwkpKAfoHdwARwG8AnXcAbwAl9////xHAzwJwlAAAdwDBwG8AnXcAbwAl9////0U=
Type of change
How Has This Been Tested?
invoke script
VwEAwkpKAfoHdwARwG8AnXcAbwAl9////xHAzwJwlAAAdwDBwG8AnXcAbwAl9////0U=
Should finish in 0.4s when #3520 is merged.
Checklist: