当前位置:网站首页>07 local method stack
07 local method stack
2022-06-25 18:25:00 【Name is too tangled】
1. Introduce
- Java The virtual machine stack is used to manage Java Method call , The local method stack is used to manage calls to local methods .
- Native Method Stack , It's also thread private .
- The memory can be dynamically expanded ( In terms of memory overflow, it is the same as the virtual machine stack )
- If the stack capacity allocated by thread request exceeds the maximum allowed capacity of local method stack ,Java The virtual machine will throw a StackoverflowError abnormal .
- If the native method stack can be dynamically extended , And can't get enough memory when trying to expand , Or when creating a new thread, there is not enough memory to create the corresponding local method stack , that Java The virtual machine will throw a OutofMemoryError abnormal .
- Local methods generally use C The realization of language .
- Its concrete method is Native Method Stack Registered in native Method , stay Execution Engine Load local method library on execution .

2. Other matters
When a thread calls a local method , It's entering a whole new world that's no longer limited by virtual machines . It has the same permissions as a virtual machine .- Local methods can be implemented through local method interfaces
Access the runtime data area inside the virtual machine - It can even use the registers in the local processor directly
- Allocate any amount of memory directly from the local memory heap
- Local methods can be implemented through local method interfaces
Not all JVM Both support local methods . because Java The virtual machine specification does not explicitly require the language of the local method stack 、 How to realize it 、 Data structure, etc. If JVM The product is not intended to support native Method , You don't need to implement a local method stack .- stay Hotspot JVM in , Directly combines the local method stack with the virtual machine stack .
边栏推荐
- 将Graph Explorer搬上JupyterLab:使用GES4Jupyter连接GES并进行图探索
- Huawei cloud SRE deterministic operation and maintenance special issue (the first issue)
- Android物联网应用程序开发(智慧园区)—— 图片预览界面
- SQL Server real time backup library requirements
- C ASP, net core framework value transfer method and session use
- GNU nano
- 【路径规划】如何给路径增加运动对象
- 深度学习网路模型
- 篇6:CLion:Toolchains are not configured Configure Disable profile
- LeetCode力扣(剑指offer 26-30)26. 树的子结构 27. 二叉树的镜像 28. 对称的二叉树 29. 顺时针打印矩阵 30. 包含min函数的栈
猜你喜欢
随机推荐
JSP page running but displaying source code
Pycharm 使用过程中碰到问题
What is the ranking of the top ten securities companies? Is it safe to open a mobile account?
One article solves all search backtracking problems of Jianzhi offer
[deeply understand tcapulusdb technology] create a game area for document acceptance
How to open a stock account is it safe to open an account
[deeply understand tcapulusdb technology] table management of document acceptance
Meaning of% in C language
RMAN backup database_ Use RMAN for split mirror backup
[compréhension approfondie de la technologie tcaplusdb] sauvegarde des données d'affaires tcaplusdb
el-table高度自适应
踩坑记录---线程池拒绝策略引起的一系列巧合
[in depth understanding of tcapulusdb technology] business guide for creating doc acceptance
【深入理解TcaplusDB技术】TcaplusDB业务数据备份
RMAN backup database_ catalogue
Anaconda download Tsinghua source
Leetcode force buckle (Sword finger offer 26-30) 26 Substructure of tree 27 Image of binary tree 28 Symmetric binary tree 29 Print matrix 30 clockwise Stack containing min function
RMAN备份数据库_管理备份窗口(Backup Window)
[deeply understand tcapulusdb technology] create a game zone
. How to exit net worker service gracefully






![[in depth understanding of tcapulusdb technology] tcapulusdb model](/img/10/f94a5e1ebeaa803c754dd77351950f.png)


