问一个源码方面的问题,关于ClassSize的
- Dominant language
- Java
- Stars
- 17.4k
- Forks
- 5.7k
- PR merge metrics
- No merged PRs in 30d
Description

如图,3个问题
1、引用大小为什么写死是8位,我能想到的解释是datax默认用户是启动在64位虚拟机,且堆内存大小设置为32g,这时候对象指针压缩会失效,所以是8位,不知道我自己的这个强行解释是不是符合datax研发人员的预期(ps:中文注释是我自己补的)。
2、ARRAYLIST大小的计算公式没看懂,麻烦大佬们解释一下。
3、DefaultRecordHead和ColumnHead在计算的时候为什么没有计算对象头大小
Contributor guide
No contributing guide indexed for this repository
Research direction
The issue points to ClassSize and asks about ARRAYLIST, DefaultRecordHead, and ColumnHead; begin by locating those definitions and checking the calculation formulas against the JVM object and reference-size assumptions described in the question. Done means providing a clear explanation for the hard-coded reference size, the ARRAYLIST formula, and whether object-header size is intentionally excluded.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- data-engineering
- Issue type
- Documentation
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100