当前位置:网站首页>jvm 组成
jvm 组成
2022-04-22 18:10:00 【哟呵呵,咦】
java中Jvm的组成部分

1.类加载子系统:负责查找并装载Class 文件到内存,最终形成可以被虚拟机直接使用的Java类型。
2.方法区:用于存放类信息 ,常量信息,静态变量包括字符串字面量和数字常量等。由于所有线程都共享方法区,因此它们对方法区数据的访问必须被设计为是线程安全的。
3.java堆:存储Java程序创建的类实例 (就是我们常常所说的对象引用)。所有线程共享,因此设计程序时也要考虑到多线程访问对象(堆数据)的同步问题。
4.直接内存:java的NIO库允许java程序使用直接内存,从而提高性能,通常直接内存的速度会优于java堆 读写频繁的场合可能会考虑使用。
5.java栈:每个虚拟机线程都有一个私有的栈,一个线程的java栈在线程创建的时候被创建,java栈中保存着局部变量,方法参数,同时和java方法的调用、返回密切相关。
6.本地方法栈:本地方法栈和java栈非常类似,最大的不同本地方法栈用于本地方法调用 java虚拟机允许java直接调用本地方法。
7.垃圾回收系统:垃圾回收系统是java的核心 也是必不可少的,java有一套自己进行垃圾清理的机制 ,开发人员无需手工清理。
8.PC寄存器:寄存器也是线程私有的空间 ,java虚拟机会为每个线程创建PC寄存器,在任意时刻,一个java线程在执行一个方法,这个方法被称为当前方法,如果当前方法不是本地方法,PC寄存器就会指向当前正在被执行的指令。如果当前方法是本地方法,那么PC寄存器的值就是undefined,寄存器存放当前执行环境指针,程序计数器,操作栈指针,计算的变量指针等信息。
9.执行引擎:虚拟机最核心的j就是执行引擎了,他负责虚拟机的字节码,现代虚拟机为了提高执行效率,会使用即时编译技术将方法编译成机器码后再执行。
版权声明
本文为[哟呵呵,咦]所创,转载请带上原文链接,感谢
https://blog.csdn.net/qq_45834006/article/details/114271379
边栏推荐
- 我国有哪些完全自研的电脑硬件?
- Halo open source project learning (I): project launch
- CISP examination resource sharing
- 接口测试 Mock 实战(二) | 结合 jq 完成批量化的手工 Mock
- Topic5——198. raid homes and plunder houses
- 【思考与进步】:关于自己的遗憾
- Notes on soft test high items | six elements of national information system
- Soft test high-level notes | five levels of informatization
- Soft test high item notes | enterprise application integration
- Dynamic programming: multiple knapsack problem
猜你喜欢

秒云助力中电科32所发布“基于拟态应用集成框架的SaaS云管理平台解决方案”

Dynamic programming: multiple knapsack problem
Esprima ECMAScript 解析架构

Soft test high item notes | information system security

Leetcode 108: convert an ordered array into a binary search tree

CISP examination resource sharing

Domestic chip dp9637-k bus transceiver replaces l9637d chip and si9241

【bat】查看文件md5

膨胀卷积论文笔记

构建中国云生态 | 华云数据与百信完成产品兼容互认证 携手推动信创产业高质量发展
随机推荐
MySQL - index
最近学习感悟
Packet capture analysis of interface protocol TCP protocol
filter执行原理深度剖析(bitset机制与caching机制)
In depth analysis of filter execution principle (BitSet mechanism and caching mechanism)
Notes on soft test high items | steps of feasibility study
Interface test mock practice (II) | complete batch manual mock in combination with JQ
接口测试 Mock 实战(二) | 结合 jq 完成批量化的手工 Mock
B树[概念]
Notes on soft test high items | contents of feasibility study
Soft test high item notes | basis of project evaluation
What is the development trend of 5g chip in 2022?
CISP examination resource sharing
The content exported by the rich text editor is PDF or docx
What data indicators should app focus on?
Get the actual name of the parameter of the method through reflection
Halo open source project learning (I): project launch
Research Report on the development of asset management and custody banking industry in 2021
I still don't understand the relative path and absolute path. This article takes you to analyze it briefly
Read and write txt files in C language