当前位置:网站首页>Object memory layout
Object memory layout
2022-07-01 22:34:00 【Keyboard singer】
One 、 brief introduction
stay HotSpot In the virtual machine , The storage layout of objects in heap memory can be divided into three parts : Object head (Header)、 The instance data (Instance Data) And align fill (Padding). It is filled to ensure that the object is 8 Multiple of bytes !
The object head can be subdivided again , It is divided into Object tag (Mark Word) and Class meta information ( Type a pointer ), For array objects, there will be one more object header Length part . stay 64 Bit system ,Mark Word Account for the 8 Bytes , Type pointer occupied 8 Bytes , Is the total 16 Bytes .
from openJDK Of oop.hpp You can see... In the source code :_mark The fields are mark word,_metadata It's a class pointer klass pointer, Object head (object header) That is, it consists of these two fields .
Two 、 The head of the object MarkWord
Hash code can be found 、GC Mark ,GC frequency , Synchronization lock flag , Biased lock holders are Mark Word Inside .
This information is data that has nothing to do with the definition of the object itself , therefore Mar
边栏推荐
- 函数基本学习之一
- 记录一次spark on yarn 任务报错 Operation category READ is not supported in state standby
- String type conversion BigDecimal, date type
- Aidl basic use
- Show member variables and methods in classes in idea
- Application of real estate management based on 3D GIS
- Sonic cloud real machine learning summary 6 - 1.4.1 server and agent deployment
- 对象内存布局
- Pytorch sharpening chapter | argmax and argmin functions
- 灵动微 MM32 多路ADC-DMA配置
猜你喜欢

详解ThreadLocal

Mask wearing detection method based on yolov5

从零开始学 MySQL —数据库和数据表操作

Mysql——》MyISAM存储引擎的索引

Application of real estate management based on 3D GIS

配置筛选机

BlocProvider 为什么感觉和 Provider 很相似?

91.(cesium篇)cesium火箭发射模拟

ICML2022 | 基于元语义正则化的介入性对比学习
![[commercial terminal simulation solution] Shanghai daoning brings you Georgia introduction, trial and tutorial](/img/b0/029cdea72483ed9bc8a0d66908983a.png)
[commercial terminal simulation solution] Shanghai daoning brings you Georgia introduction, trial and tutorial
随机推荐
三翼鸟两周年:羽翼渐丰,腾飞指日可待
固定资产管理子系统报表分为什么大类,包括哪些科目
Flume interview questions
【MySQL】索引的创建、查看和删除
Tops, the unit of computing power of the processor, can be carried out 1 trillion times per second
Significance and measures of security encryption of industrial control equipment
GenICam GenTL 标准 ver1.5(4)第五章 采集引擎
Manually implement function isinstanceof (child, parent)
Is PMP certificate really useful?
MQ learning notes
Aidl basic use
指标陷阱:IT领导者易犯的七个KPI错误
Business visualization - make your flowchart'run'up
Yan Rong looks at how to formulate a multi cloud strategy in the era of hybrid cloud
CSDN购买的课程从哪里可以进入
Simple interactive operation of electron learning (III)
ICML2022 | 基于元语义正则化的介入性对比学习
MySQL learning notes - SQL optimization of optimization
flink sql 命令行 连接 yarn
【单体】流辰信息I-BPSv3服务器推荐配置