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

Assert Heap Size #200

Merged
merged 2 commits into from
Oct 10, 2024
Merged

Assert Heap Size #200

merged 2 commits into from
Oct 10, 2024

Conversation

yogh333
Copy link
Contributor

@yogh333 yogh333 commented Oct 10, 2024

No description provided.

@yogh333 yogh333 merged commit bc52315 into master Oct 10, 2024
44 checks passed
@yogh333 yogh333 deleted the y333_20241010/assert_heap_size branch October 10, 2024 09:53
@emmanuelm41
Copy link
Contributor

Hey @yogh333! Any reason why this check was added? It is quite inconvenient in cases where there is a limited size between stack and heap. Between 8192, and 16384 there is a big gap, and could potentially block apps where the stack is important too.

@emmanuelm41
Copy link
Contributor

emmanuelm41 commented Oct 31, 2024

Particularly, this could break the Ironfish DKG app that we are currently reviewing on ledger side. It is not enough with 8192, and 16384 is too much. We were using something in between (16300), and the app was working just fine.

@emmanuelm41
Copy link
Contributor

This PR increases the stack usage on 359 bytes (because of the warning icon), and that breaks our app. We cannot decrease the heap size a bit, and 8192 is not enough. :/

@yogh333
Copy link
Contributor Author

yogh333 commented Oct 31, 2024

@emmanuelm41 You are right, I have modified the assert in this PR #209

@emmanuelm41
Copy link
Contributor

@yogh333 thanks a lot for the quick fix. I think it will work now!! Again, thanks!

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