-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid stack overflow when initializing HashBuffers. (#164)
Before this commit, `Box::default()` that creates default `HashBuffers` would in debug mode create the default `HashBuffers` struct on the stack and then as a separate step copy it into the heap (i.e. into the `Box`). This would require 164098 bytes of stack space and would trigger stack overflow in some scenarios (e.g. when running Chromium tests built in debug-mode on an iOS device - see https://crbug.com/394824910).
- Loading branch information
1 parent
2119168
commit 921bc2c
Showing
2 changed files
with
13 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters