Relax NBINS constraint (max 255 --> max 256).
This commit is contained in:
parent
a83a31c1c5
commit
a43db1c608
@ -331,11 +331,9 @@ cat <<EOF
|
|||||||
#undef SIZE_CLASSES_DEFINED
|
#undef SIZE_CLASSES_DEFINED
|
||||||
/*
|
/*
|
||||||
* The size2index_tab lookup table uses uint8_t to encode each bin index, so we
|
* The size2index_tab lookup table uses uint8_t to encode each bin index, so we
|
||||||
* cannot support more than 256 small size classes. Further constrain NBINS to
|
* cannot support more than 256 small size classes.
|
||||||
* 255 since all small size classes, plus a "not small" size class must be
|
|
||||||
* stored in 8 bits of arena_chunk_map_bits_t's bits field.
|
|
||||||
*/
|
*/
|
||||||
#if (NBINS > 255)
|
#if (NBINS > 256)
|
||||||
# error "Too many small size classes"
|
# error "Too many small size classes"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user