当前位置:网站首页>Class loading and classloader understanding
Class loading and classloader understanding
2022-04-23 06:01:00 【hanyc..】
1、 load : Class like class Bytecode file loaded into memory , And convert the static data into the method area ( Special piles ) The runtime data structure of . At this stage , Generate... Representing this class java.lang.Class object .
2、 link : take Java Class to JRE in
- verification : Ensure that the loaded class information complies with JVM standard , There are no security issues ;
- Get ready : Officially a class variable (static) Allocate memory , And set the default initial value of class variables , This memory is allocated in the method area ;
- analysis : take JVM Symbol references in constant pools ( Constant names ) Replace with direct reference ( Address ).
3、 initialization :
- Execute the static( Static code block 、 Static variables ) A combined class constructor ().( The class constructor here is used to construct class information classes , No Constructor for constructing class objects )
- When initializing a class , It is found that his parent class has not been initialized , Then we will initialize its parent class first .
- JVM Ensure that a class () Methods are locked and synchronized correctly in a multithreaded environment .
( Focus on the bold part )
版权声明
本文为[hanyc..]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230541159391.html
边栏推荐
- 开发环境 EAS登录 license 许可修改
- 治療TensorFlow後遺症——簡單例子記錄torch.utils.data.dataset.Dataset重寫時的圖片維度問題
- Multithreading and high concurrency (3) -- synchronized principle
- Pytorch学习记录(十):数据预处理+Batch Normalization批处理(BN)
- 线性代数第一章-行列式
- Pyqt5 learning (I): Layout Management + signal and slot association + menu bar and toolbar + packaging resource package
- Pytorch introduction notes - use a simple example to observe the output size of each layer of forward propagation
- 你不能访问此共享文件夹,因为你组织的安全策略阻止未经身份验证的来宾访问
- Reading of denoising paper - [ridnet, iccv19] real image denoising with feature attention
- Pytoch -- data loading and processing
猜你喜欢
delete和truncate
Pytorch learning record (7): skills in processing data and training models
In depth source code analysis servlet first program
域内用户访问域外samba服务器用户名密码错误
Pytorch learning record (III): structure of neural network + using sequential and module to define the model
Graphic numpy array matrix
Multithreading and high concurrency (2) -- detailed explanation of synchronized usage
Pyemd installation and simple use
给yarn配置国内镜像加速器
Practical operation - Nacos installation and configuration
随机推荐
线性代数第一章-行列式
Get the value of state in effects in DVA
对比学习论文——[MoCo,CVPR2020]Momentum Contrast for Unsupervised Visual Representation Learning
JSP语法及JSTL标签
Configure domestic image accelerator for yarn
深入源码分析Servlet第一个程序
Unsupervised denoising - [tmi2022] ISCL: dependent self cooperative learning for unpaired image denoising
JDBC工具类封装
Pytorch学习记录(五):反向传播+基于梯度的优化器(SGD,Adagrad,RMSporp,Adam)
Rsync for file server backup
PyTorch笔记——观察DataLoader&用torch构建LeNet处理CIFAR-10完整代码
Create enterprise mailbox account command
治療TensorFlow後遺症——簡單例子記錄torch.utils.data.dataset.Dataset重寫時的圖片維度問題
Fundamentals of in-depth learning -- a simple understanding of meta learning (from Li Hongyi's course notes)
容器
Pytorch——数据加载和处理
Pytorch notes - observe dataloader & build lenet with torch to process cifar-10 complete code
How to use comparative learning to do unsupervised - [cvpr22] training & [eccv20] image translation
Conda 虚拟环境管理(创建、删除、克隆、重命名、导出和导入)
Linear algebra Chapter 1 - determinant