<!-- https://mvnrepository.com/artifact/org.openjdk.jol/jol-core -->
<dependency>
<groupId>org.openjdk.jol</groupId>
<artifactId>jol-core</artifactId>
<version>0.9</version>
</dependency>
package learn.cn.多线程;
/**
* create by liuzhiwei on 2020/4/2
*/
public class JavaObjectHead {
//boolean flag;//1 byte
int flag;//4 byte