当前位置:网站首页>Runtime data area & method area (permanent generation / meta space) & stack frame
Runtime data area & method area (permanent generation / meta space) & stack frame
2022-07-18 15:48:00 【Haozhan】
Run time data area
Method area Pile up Program counter Native Method Stack Java Virtual machine stack
Method area : Storage information , Static variables , Constant , And immediately compiled code
Pile up : Class instances and arrays The heap occupies the largest memory space , It is also the main management area of garbage collector .
Program counter : Record the current thread execution position , In order to recover to the correct execution position after switching threads ;
Native Method Stack : Local method (native Method ) When executed , A stack frame will also be created in the local method stack
Java Virtual machine stack : When each method is executed ,JVM A stack frame will be created synchronously (Stack Frame) Used to store local variables 、 The stack of operands 、 Dynamic connection 、 Method exit information .
Thread private : Program counter , Virtual machine stack , Native Method Stack
Thread sharing : Pile up , Method area
Specific implementation of method area :
Forever : yes HotSpot Virtual machine to virtual machine specification in the method area of a way to achieve
Meta space : Use direct memory ; adopt NIO Class uses native Function library directly allocates out of heap memory , By storing in java Heap DirectByteBuffer Object to reference this memory ;
Stack frame : Include local variable table , The stack of operands , Dynamic links and method return addresses

The picture is from : https://www.nowcoder.com/discuss/353149635789266944
边栏推荐
- Find active SQL connections in SQL Server
- The most complete MySQL in history! Desperately tidy up
- Code to celebrate the Dragon Boat Festival -- Zong your heart
- Enable sandbox function and use in win10
- Codeforces Round #806 (Div. 4)
- RS485接口OSI模型的应用层
- 剑指offer 46:把数字翻译成字符串
- Differences between get requests and post requests and usage examples
- A Zuo's aspiration
- CV2. Setmousecallback() displays the pixel value and position of the mouse click image
猜你喜欢

Ciphertext on RGB image -- illegal data hiding

UE4/5中的旋转:三个欧拉角Picth、Yaw、Roll及FRotator

C language -- the implementation of common string functions

【前缀和和差分】

leetcode:378. The k-th smallest element in an ordered matrix

Compilation optimization from the release of Xiaomi 10

【LeetCode】11. Lowest common ancestor of a binary search tree

Small target detection 1_ Focal loss

通過制定願景克服數字化轉型挑戰

PostgreSQL 现在安装
随机推荐
Overcome the challenges of digital transformation by developing a vision
RGB图像上的密文--违规数据隐藏
Andersen Global进军卢旺达
C语言求回文质数
JS Object.keys()
async函数实现多个请求处理
Differences between get requests and post requests and usage examples
爱科荣获2022年红点奖:设计概念奖
The difference and use between get request and post request
Fun ping command
HMS core graphics and image technology shows the latest functions and application scenarios, and accelerates the construction of digital intelligence life
Compilation optimization from the release of Xiaomi 10
one trillion and one hundred and eleven billion one hundred and eleven million one hundred and eleven thousand one hundred and eleven
mysql字段类型选用
【LeetCode】10. Maximum subarray · maximum subarray sum
[source code] tensorboard visualizes MNIST recognition training process
This new digital plan in Shanghai has brought new possibilities to NFT, metauniverse, etc
C语言——常用字符串函数的实现
通過制定願景克服數字化轉型挑戰
New functions need to be released online, and problems that did not exist before always appear in regression testing