Move bin initialization from arena module to bin module.

This commit is contained in:
David T. Goldblatt 2017-10-01 18:02:39 -07:00 committed by David Goldblatt
parent 4bf4a1c4ea
commit a8dd8876fb
4 changed files with 21 additions and 11 deletions

View file

@ -78,4 +78,7 @@ struct bin_s {
malloc_bin_stats_t stats;
};
/* Returns true on error. */
bool bin_init(bin_t *bin);
#endif /* JEMALLOC_INTERNAL_BIN_H */

View file

@ -51,7 +51,7 @@
#define WITNESS_RANK_ARENA_LARGE 19U
#define WITNESS_RANK_LEAF 0xffffffffU
#define WITNESS_RANK_ARENA_BIN WITNESS_RANK_LEAF
#define WITNESS_RANK_BIN WITNESS_RANK_LEAF
#define WITNESS_RANK_ARENA_STATS WITNESS_RANK_LEAF
#define WITNESS_RANK_DSS WITNESS_RANK_LEAF
#define WITNESS_RANK_PROF_ACTIVE WITNESS_RANK_LEAF