加锁 同(tong)时队(dui)列(lie)可以无限(xian)长吗 什么时候消减,同(tong)时采(cai)用了(le)弱引用避免队列过大(da),造(zao)成gc压(ya)力 源(yuan)码(ma)如下get recycle scavenge每次都是从(cong)head节点(dian)获取,如果获取不到就next,这些队(dui)列并不删(shan)除(chu),jvm会(hui)自动在内存(cun)不够的(de)时候(hou)删除(chu)
Copyright © 2008-2018