1
0
mirror of https://github.com/Snailclimb/JavaGuide synced 2025-06-16 18:10:13 +08:00

Merge pull request #2422 from gyaatrox/patch-1

Update memory-area.md
This commit is contained in:
Guide 2024-07-05 16:38:02 +08:00 committed by GitHub
commit e1439d8079
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -131,7 +131,7 @@ Java 堆是垃圾收集器管理的主要区域,因此也被称作 **GC 堆(
MaxTenuringThreshold of 20 is invalid; must be between 0 and 15
```
**为什么年龄只能是 0-15? **
**为什么年龄只能是 0-15?**
因为记录年龄的区域在对象头中,这个区域的大小通常是 4 位。这 4 位可以表示的最大二进制数字是 1111即十进制的 15。因此对象的年龄被限制为 0 到 15。