Part 1 of jvm - class loading subsystem

Title: JVM Part 1 - Class Loading Subsystem


Reference blog: Reference blog
Reference video: Reference video
The official account is: This is the first time I try this official account, so it is still in the initial stage, I hope you can pay attention and support.
insert image description here

Read the instructions:

  • You can start with 4.2 of the second point and the fourth point to see the test cases;
  • Through the analysis of test cases, so as to read this article from the beginning,
  • When reading, you can take a general look, mainly to understand

1. Class loading subsystem

1 Overview

insert image description here

2. Loading phase

3. Linking stage

3.1 Verification

3.2 preparation

insert image description here

3.3 Analysis

insert image description here

4. Initialization phase

insert image description here

2. Classification of class loaders

1. Two class loaders

insert image description here

2. Test cases

insert image description here

3. The loader that comes with the virtual machine

3.1 Start class loader

3.2 Extended class loader

3.3 System class loader

insert image description here

3.4 User-defined class loader

insert image description here

4. Parental delegation mechanism

insert image description here

4.2 Test 1

insert image description hereinsert image description here

4.3 Test 2

insert image description here

Variation of test two

insert image description here

Summary of the previous two tests

insert image description here

4.4 Test three:

insert image description here

4.5 Advantages of Parental Delegation Mechanism

5. Sandbox security mechanism

insert image description here

6. Other

insert image description here

7. Active and passive use of classes

insert image description here

Guess you like

Origin blog.csdn.net/weixin_45986454/article/details/126422397