当前位置:网站首页>JVM runtime constant pool and direct memory
JVM runtime constant pool and direct memory
2022-06-11 21:05:00 【Just number six Z】
Runtime constant pools and direct memory
Runtime constant pool
The runtime constant pool is part of the method area .Class Except for the version of the class in the file 、 Field 、 Method 、 Interface and other description information , And the constant pool table .
Constant pool
A valid bytecode file contains the version information of the class 、 Field 、 Methods and interfaces , Also included is the constant pool , Contains a variety of literal quantities and pairs of types 、 Symbolic references to fields and methods .
Why constant pools are needed ?
One java Classes in the source file 、 Interface , After compiling, a bytecode file is generated . and Java The bytecode in needs data support , Usually this data is too large to be stored directly in bytecode , Another way , It can be stored in a constant pool , This bytecode contains a reference to the constant pool . The runtime constant pool is used in dynamic linking .
Data types stored in the constant pool
- Quantity is worth
- A string value
- Class reference
- Field reference
- Method reference
Runtime constant pool
- Runtime constant pool (Runtime Constant Pool) Is part of the method area .
- Constant pool table (Constant Pool Table) yes Class Part of the document , Used to store various literal quantities and symbol references generated by the compiler , This part will be stored in the runtime constant pool of the method area after the class is loaded .
- Runtime constant pool , be relative to Class Another important feature of the file constant pool is : dynamic .
Direct memory
Direct memory is not part of the VM runtime data area , It's not the memory area defined in the virtual machine specification , But this part of memory is also frequently used . And it can also lead to OutOfMemoryError Error occurred .
Direct memory allocation is not affected by Java Pile limits , however , Since memory is limited by the total memory size of the machine and the addressing space of the processor .
Direct memory is Java Out of the pile 、 Memory range directly applied to the system . Access to direct memory is faster than Java Pile up , That is to say, the read-write performance is high .
边栏推荐
- MySQL installation free configuration tutorial under Windows mysql-5.6.51-winx64 Zip version
- Role of RESNET residual block
- 正则校验匹配[0-100]、[0-1000]之间的正整数或小数点位数限制
- Vectordrawable error
- [index system] the latest modeling method of data warehouse index system
- [nk] 牛客练习赛100 C 小红的删数字
- Obsidian关系图谱如何让节点可以手动拖动
- JS monitor scrolling touch bottom load more_ Browser scrolls to the bottom to load more
- Weekly 02 | to tell you the truth, I am actually a student of MIT
- [Game Theory - introduction]
猜你喜欢

第一部分 物理层
![[data visualization] Apache superset 1.2.0 tutorial (II) - Quick Start (visualizing King hero data)](/img/21/c2212a674fdf77571305446217a5ca.png)
[data visualization] Apache superset 1.2.0 tutorial (II) - Quick Start (visualizing King hero data)

Part I physical layer

第二部分 数据链路层

银泰百货与淘宝天猫联合打造绿色潮玩展,助力“碳中和”

Frequency domain filter

Cs144 lab0 lab1 record

Tensorflow 2. X Getting Started tutorial

The scale of the global machine vision market continues to rise. Poe image acquisition card provides a high-speed transmission channel for industrial cameras

Tensorflow 2. X Getting Started tutorial
随机推荐
Capriccio in the Internet Age
What are striplines and microstrip lines? Reference planes and transmission lines
vectorDrawable使用报错
[data visualization] Apache superset 1.2.0 tutorial (III) - detailed explanation of chart functions
Serval and rooted Tree (cf1153d) - DP
RANSAC提取平面(MATLAB内置函数)
Systematically study the recommendation system from a global perspective to improve competitiveness in actual combat (Chapter 8)
Title does not display after toolbar replaces actionbar
JVM对象分配策略TLAB
UI automated interview questions
Interviewer: what is the event flow and event model in JS?
Weekly 02 | to tell you the truth, I am actually a student of MIT
Part II data link layer
修改本地微信小程序的AppID
Space transcriptome experiment | what factors will affect the quality of space transcriptome sequencing during the preparation of clinical tissue samples?
Application analysis of Poe image acquisition card in machine vision industrial computer
桌面以及文件资源管理器无限重启的解决
第二部分 数据链路层
[game theory complete information static game] strategic game
Recompile kubeadm to solve the problem of certificate expiration in one year