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

Clear stack regardless of if in debug mode #45

Closed

Conversation

gfodor
Copy link
Contributor

@gfodor gfodor commented Jun 3, 2017

This fixes what I think may have been a bug (I get errors otherwise) where the top of the stack is not cleared out unless in Debug mode. I am not sure if this is a bug directly or is exposing some other underlying problem. If this patch is not applied and Debug mode is disabled, then I get an exception on array bounds when running a simple script. (Happy to investigate further if this patch looks incorrect.)

@liiir1985
Copy link
Collaborator

It's intended to save CPU time for release build, because not zeroing out the stack shouldn't affect the behavior of the result, If you are getting exception while runtime. then it's most probably a bug in other section. Can you please submit a test case for the problem you encountered? So I can look into this issue

@gfodor
Copy link
Contributor Author

gfodor commented Jun 4, 2017

Ah, this was a bug due to my other patch #43 (which is now updated) I missed a few ifdefs. Closing.

@gfodor gfodor closed this Jun 4, 2017
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.

2 participants