Annotate what bucket_size[] array does; staticize since it's used only

in uma_core.c.
This commit is contained in:
Robert Watson 2004-11-06 11:24:40 +00:00
parent 111c3747b7
commit f9d27e7524

View File

@ -185,7 +185,11 @@ struct uma_bucket_zone bucket_zones[] = {
#define BUCKET_SHIFT 4
#define BUCKET_ZONES ((BUCKET_MAX >> BUCKET_SHIFT) + 1)
uint8_t bucket_size[BUCKET_ZONES];
/*
* bucket_size[] maps requested bucket sizes to zones that allocate a bucket
* of approximately the right size.
*/
static uint8_t bucket_size[BUCKET_ZONES];
enum zfreeskip { SKIP_NONE, SKIP_DTOR, SKIP_FINI };