mirror of
https://github.com/Snailclimb/JavaGuide
synced 2025-06-16 18:10:13 +08:00
关于-XX:MaxTenuringThreshold设置值,应该在0-15,否则会爆出以下错误:MaxTenuringThreshold of 20 is invalid; must be between 0 and 15 关于为什么只能是0-15,是因为关于年龄的数据存放在对象头中,对象头只占有4个字节,是0000到1111所以是0-15,附加源码图片