mirror of
https://github.com/Snailclimb/JavaGuide
synced 2025-06-16 18:10:13 +08:00
Update memory-area.md
格式问题
This commit is contained in:
parent
28bfed8001
commit
c8803d3e5c
@ -131,7 +131,7 @@ Java 堆是垃圾收集器管理的主要区域,因此也被称作 **GC 堆(
|
|||||||
MaxTenuringThreshold of 20 is invalid; must be between 0 and 15
|
MaxTenuringThreshold of 20 is invalid; must be between 0 and 15
|
||||||
```
|
```
|
||||||
|
|
||||||
**为什么年龄只能是 0-15? **
|
**为什么年龄只能是 0-15?**
|
||||||
|
|
||||||
因为记录年龄的区域在对象头中,这个区域的大小通常是 4 位。这 4 位可以表示的最大二进制数字是 1111,即十进制的 15。因此,对象的年龄被限制为 0 到 15。
|
因为记录年龄的区域在对象头中,这个区域的大小通常是 4 位。这 4 位可以表示的最大二进制数字是 1111,即十进制的 15。因此,对象的年龄被限制为 0 到 15。
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user