首页 > 其他 > 详细

HastTable源码分析

时间:2018-06-11 19:24:41      阅读:188      评论:0      收藏:0      [点我收藏+]

Hashtable是什么

1.

static {
/**ssssss**/ String altThreshold = java.security.AccessController.doPrivileged( new sun.security.action.GetPropertyAction( "jdk.map.althashing.threshold")); int threshold; try { threshold = (null != altThreshold) ? Integer.parseInt(altThreshold) : ALTERNATIVE_HASHING_THRESHOLD_DEFAULT; // disable alternative hashing if -1 if (threshold == -1) { threshold = Integer.MAX_VALUE; } if (threshold < 0) { throw new IllegalArgumentException("value must be positive integer."); } } catch(IllegalArgumentException failed) { throw new Error("Illegal value for ‘jdk.map.althashing.threshold‘", failed); } ALTERNATIVE_HASHING_THRESHOLD = threshold; }

 

HastTable源码分析

原文:https://www.cnblogs.com/muliti-hu/p/9168618.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!