当前位置:网站首页>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 .
边栏推荐
- Implement AOP and interface caching on WPF client
- Interviewer: what is the event flow and event model in JS?
- 技术交流|网络安全设备为什么要用Bypass功能
- Redis第四话 -- redis高性能原理(多路复用)和高可用分析(备份、主从)
- JVM运行时常量池以及直接内存
- Deploy website traffic statistics background based on Tencent cloud lightweight application server and umami
- [data visualization] use Apache superset to visualize Clickhouse data
- Unity package manager starting server stuck
- The official announced the launch of Alibaba's 2023 global school recruitment: Technical Posts account for more than 60%
- Go语言for循环
猜你喜欢

Docker installing MySQL

In idea, run the yarn command to show that the file cannot be loaded because running scripts is disabled on this system

My collection of scientific research websites

为什么100G网络传输要使用iWARP、RoCE v2、NVMe-oF等协议

Object storage of CEPH distributed storage

JVM对象分配策略TLAB

Teach you how to grab ZigBee packets through cc2531 and parse encrypted ZigBee packets
![[nk] deleted number of 100 C Xiaohong in Niuke practice match](/img/f1/a99600e1800c087aceb60a559dee39.png)
[nk] deleted number of 100 C Xiaohong in Niuke practice match
![[file upload vulnerability 04] server side mime detection and bypass experiment (based on upload-labs-2 shooting range)](/img/b8/521ca4bb8931afab9a3a4d0b015125.jpg)
[file upload vulnerability 04] server side mime detection and bypass experiment (based on upload-labs-2 shooting range)

The gateway starts other microservices first. When the gateway is started, the gateway cannot be started and there is no exception log; Start the gateway first, and all services can be started normall
随机推荐
Serval and Rooted Tree(CF1153D)-DP
[nk] deleted number of 100 C Xiaohong in Niuke practice match
[data visualization] use Apache superset to visualize Clickhouse data
MySQL installation free configuration tutorial under Windows mysql-5.6.51-winx64 Zip version
JVM方法区
Final examination of theory and practice of socialism with Chinese characteristics 1
The official announced the launch of Alibaba's 2023 global school recruitment: Technical Posts account for more than 60%
Figure guessing game
var 和 let的区别_let 和 var的区别
Js 监听滚动触底加载更多_浏览器滚动触底加载更多
RANSAC提取平面(MATLAB内置函数)
【数据可视化】Apache Superset 1.2.0教程 (三)—— 图表功能详解
ASCII code comparison table
Release of version 5.6 of rainbow, add multiple installation methods, and optimize the topology operation experience
新品发布:国产单电口千兆网卡正式量产!
重投农业,加码技术服务,拼多多底盘进一步夯实
Live broadcast with practice | 30 minutes to build WordPress website with Alibaba cloud container service and container network file system
机器视觉工控机PoE图像采集卡应用解析
IDEA中,运行yarn命令,显示无法加载文件,因为在此系统上禁用运行脚本
Log in with password and exit with error for three times.