当前位置:网站首页>JVM之虚拟机栈之动态链接
JVM之虚拟机栈之动态链接
2022-06-29 09:16:00 【Hao_JunJie】
一、前提:本篇我们主要讲解栈帧中的动态链接(指向运行时常量池方法的引用)
二、概念:

先来看一下上图,有时候我们将方法返回地址、动态链接、一些附加信息统称为帧数据区
(1)每一个栈帧内部包含一个指向运行时常量池中该栈帧所属方法的引用,包含这个引用的目的就是为了支持当前方法的代码能够实现动态来链接。比如:invokdynamic指令。
(2)在Java源文件被编译到字节码文件中时,所有的变量和方法引用都作为符号引用,保存在class 文件的常量池里。
比如:描述一个方法调用了另外的其他方法时,就是通过常量池中指向方法的符号引用来表示的,那么动态链接的作用就是为了将这些符号引用转换为调用方法的直接引用
eg:

反编译后:


发现变量和方法的符号引用都存在于class 文件中的常量池中。
三、请看图解:

边栏推荐
- A comparison of methods for fully automatic segmentation of tumors and involved nodes in PET/CT of h
- 转载 :判断对象是否具有属性的5种方法
- UE4 compile a single file (VS and editor start respectively)
- 监控数据源连接池使用情况
- CROSSFORMER: A VERSATILE VISION TRANSFORMER BASED ON CROSS-SCALE ATTENTION
- PHP内存马技术研究与查杀方法总结
- 你知道BFD是什么吗?一文详解BFD协议原理及使用场景
- 自定义mvc框架实现
- es报错NoNodeAvailableException[None of the configured nodes are available:[.127.0.0.1}{127.0.0.1:9300]
- Slider validation code
猜你喜欢

ORA-01950 对表空间无权限

1424. diagonal traversal II

力扣94二叉树的中序遍历

基於PyQt5和Qt Designer的簡易加法計算器的制作

zabbix4.4配置监控服务器指标,以及图形页乱码解决

A 3D Dual Path U-Net of Cancer Segmentation Based on MRI
![[Huawei certification] the most complete and selected question bank in hcia-datacom history (with answer analysis)](/img/d4/f5ea847573433f7ca7bd429f57e40a.png)
[Huawei certification] the most complete and selected question bank in hcia-datacom history (with answer analysis)

Automatic Multi-Organ SegmVentation on Abdominal CT With Dense V-Networks

Automatic 3D Detection and Segmentation of Head and Neck Cancer from MRI Data.

Chang'an chain go language smart contract writing and compilation
随机推荐
证券账号开户安全吗?是靠谱的吗?
你必须知道的23个最有用的Elasticseaerch检索技巧
Segmentation of Head and Neck Tumours Using Modified U-net
Custom MVC framework implementation
XML布局中Button总是在最上层显示
在Activity外使用startActivity()方法报错原因与解决办法
UE4 blueprint modify get a copy in array to reference
2020-9-14 广告系统入门
Cloud management platform: 9 open source cloud management platforms (CMP)
Caused by: org.apache.xerces.impl.io.MalformedByteSequenceException: Invalid byte 3 of 3-byte UTF-8
Data warehouse: layered architecture of Finance / banking
IDEA调试失败,报JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_LOAD(196)
ImageView图片填充问题
Automatic Multi-Organ SegmVentation on Abdominal CT With Dense V-Networks
聊聊你理解的线程与并发
A 3D Dual Path U-Net of Cancer Segmentation Based on MRI
微信小程序重写Page函数,实现全局日志记录
Zabbix4.4 configure the indicators of the monitoring server and solve the garbled graphics pages
After installing anaconda, you need to enter a password to start jupyterlab
1424. diagonal traversal II