-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NFC: sizeclass: differentiate minimum step size and minimum allocatio…
…n sizes (#651) * Move sizeclass debugging code to sizeclass test The sizeclass was already testing most of this, so just add the missing bits. Forgo some tests whose failure would have implied earlier failures. This moves the last dynamic call of size_to_sizeclass_const into tests (and so, too, to_exp_mant_const). sizeclasstable.h still contains a static call to compute NUM_SMALL_SIZECLASSES from MAX_SMALL_SIZECLASS_SIZE. * Remove unused to_exp_mant Only its _const sibling is used, and little at that, now that almost everything to do with sizes and size classes is table-driven. * test/memcpy: trap, if we can, before exiting This just means I don't need to remember to set a breakpoint on exit * test/memcpy: don't assume sizeclass 0 is allocable * test/memory: don't assume sizeclass 0 is allocable * test/sizeclass: handle nonzero minimum sizeclasses * sizeclass: distinguish min alloc and step size Add support for a minimum allocation size that isn't the minimum step of the sizeclass table. * Expose MIN_ALLOC_{,STEP}_SIZE through cmake * test/sizeclass: report MIN_ALLOC_{STEP_,}SIZE
- Loading branch information
Showing
8 changed files
with
116 additions
and
51 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
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
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
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