-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
erts: Stop overestimating external format size
Debugging differences between the calculated and actual size is no fun at all when certain kinds of data is overestimated, as a simple `ASSERT(after_encode <= &before_encode[size])` check will often succeed when it shouldn't (e.g. if part of one object is overestimated while another part is underestimated). This commit fixes the differences that I've noticed, and adds an assertion that the encoded size should be exactly equal to the calculated size so that no new differences can fly under the radar from now on.
- Loading branch information
Showing
2 changed files
with
74 additions
and
20 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