当前位置:网站首页>Dynamic linking of virtual machine stack of JVM
Dynamic linking of virtual machine stack of JVM
2022-06-29 10:03:00 【Hao_ JunJie】
One 、 Premise : In this article, we mainly explain dynamic links in stack frames ( References to runtime constant pool methods )
Two 、 Concept :

Let's take a look at the picture above , Sometimes we return a method to an address 、 Dynamic links 、 Some additional information is collectively referred to as the frame data area
(1) Each stack frame contains a reference to the method to which the stack frame belongs in the runtime constant pool , The purpose of including this reference is to support the code of the current method to dynamically link . such as :invokdynamic Instructions .
(2) stay Java When the source file is compiled into a bytecode file , All variables and method references Are referenced as symbols , Save in class In the constant pool of files .
such as : Describes when a method calls another method , It is represented by a symbolic reference to a method in the constant pool , that The purpose of dynamic linking is to convert these symbolic references into direct references to calling methods
eg:

After decompiling :


Found that symbolic references to variables and methods exist in class Constant pool in file .
3、 ... and 、 Look at the diagram :

边栏推荐
- GSOAP example - calc
- Leetcode MySQL database topic 180
- ImageView图片填充问题
- linux下centos7中mysql5.7安装教程
- Es error nonodeavailableexception[none of the configured nodes are available:[.127.0.0.1}{127.0.0.1:9300]
- 内网穿透工具frp使用入门
- FreeRTOS (VIII) - time management
- Segmentation of Head and Neck Tumours Using Modified U-net
- Causes and solutions of error reporting by using startactivity() method outside the activity
- 容器
猜你喜欢
随机推荐
ImageView picture fill problem
Data governance: the solution of data governance in the data Arena
ImageView图片填充问题
Causes and solutions of error reporting by using startactivity() method outside the activity
Student addition / deletion gaih
聊聊你理解的线程与并发
数据源连接池未关闭的问题 Could not open JDBC Connection for transaction
Force deduction 85 question maximum rectangle
F5 BIG-IP iControl REST命令执行(CVE-2022-1388)
指针函数和函数指针
Generic paging framework
Wechat applet realizes store function
A method of creating easy to manage and maintain thread by C language
Automatic 3D Detection and Segmentation of Head and Neck Cancer from MRI Data.
container
A 3D Dual Path U-Net of Cancer Segmentation Based on MRI
Container of the basic component of the flutter
Please use the learned knowledge to write a program to find out the password hidden in the long string below. The burial point of the password conforms to the following rules:
通用分页框架
FreeRTOS (VIII) - time management









