JVMS Specification(4)-Loading, Linking,and Initializing

本文详细阐述了Java虚拟机如何动态加载、链接和初始化类或接口,包括加载过程、链接过程、初始化过程的实现细节及关键步骤。

THE Java virtual machine dynamically loads, links and initializes classes and interfaces.

Loading is the process of finding the binary representation of a class or interface

type with a particular name and creating a class or interface from that binary

representation. Linking is the process of taking a class or interface and combining it

into the runtime state of the Java virtual machine so that it can be executed. Initialization

of a class or interface consists of executing the class or interface initialization

method <clinit> (§2.9).

In this chapter, Section 4.1 describes how the Java virtual machine derives symbolic

references from the binary representation of a class or interface. Section 4.2

explains how the processes of loading, linking, and initialization are first initiated by

the Java virtual machine. Section 4.3 specifies how binary representations of

classes and interfaces are loaded by class loaders and how classes and interfaces

are created. Linking is described in Section 4.4. Section 4.5 details how classes

and interfaces are initialized. Section 4.6 introduces the notion of binding native

methods. Finally, Section 4.7 describes when a Java virtual machine exits.

jvm动态加载,连接和初始化类或者接口,加载过程是找到类或者接口的二进制表现形式,

连接的过程是把接口或者类和jvm运行状态绑定在一起,所以才能被执行。初始化是类或者接口执行类或者接口的初始化<clinit>方法。

4.1节,讨论JVM如何符号引用了一个类或者接口的二进制表现形式。

4.2节,解释了加载,连接,初始化过程是如何首先被jvm初始化的。

4.3节,类或者接口的二进制表现试试如何被类加载器加载和对象如何被创建。

4.4节,连接过程。

4.5节,接口或者类的初始化。

4.6节,绑定本地方法。

4.7节,JVM什么时候退出。


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值