Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. /**
  2. * The bin count threshold for using a tree rather than list for a
  3. * bin. Bins are converted to trees when adding an element to a
  4. * bin with at least this many nodes. The value must be greater
  5. * than 2 and should be at least 8 to mesh with assumptions in
  6. * tree removal about conversion back to plain bins upon
  7. * shrinkage.
  8. */
  9. static final int TREEIFY_THRESHOLD = 8;
  10.  
  11. /**
  12. * The bin count threshold for untreeifying a (split) bin during a
  13. * resize operation. Should be less than TREEIFY_THRESHOLD, and at
  14. * most 6 to mesh with shrinkage detection under removal.
  15. */
  16. static final int UNTREEIFY_THRESHOLD = 6;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement