摘要:
For each type it loads, a Java Virtual Machine must store the following kinds of information in the method area: 对每个装载的类型,虚拟机都会在方法区中存储以下类型信息: The full 阅读全文
posted @ 2021-01-16 13:22
ppjj
阅读(402)
评论(0)
推荐(0)
摘要:
For each type it loads, a Java Virtual Machine must store a constant pool. A constant pool is an ordered set of constants used by the type, including 阅读全文
posted @ 2021-01-16 13:20
ppjj
阅读(315)
评论(0)
推荐(0)
摘要:
For each field declared in the type, the following information must be stored in the method area. In addition to the information for each field, the o 阅读全文
posted @ 2021-01-16 13:19
ppjj
阅读(193)
评论(0)
推荐(0)
摘要:
For each method declared in the type, the following information must be stored in the method area. As with fields, the order in which the methods are 阅读全文
posted @ 2021-01-16 13:18
ppjj
阅读(136)
评论(0)
推荐(0)
摘要:
Class variables are shared among all instances of a class and can be accessed even in the absence of any instance. These variables are associated with 阅读全文
posted @ 2021-01-16 13:17
ppjj
阅读(218)
评论(0)
推荐(0)
摘要:
For each type it loads, a Java Virtual Machine must keep track of whether or not the type was loaded via the primordial class loader or a class loader 阅读全文
posted @ 2021-01-16 13:16
ppjj
阅读(104)
评论(0)
推荐(0)
摘要:
An instance of class java.lang.Class is created by the Java Virtual Machine for every type it loads. The virtual machine must in some way associate a 阅读全文
posted @ 2021-01-16 13:14
ppjj
阅读(233)
评论(0)
推荐(0)
摘要:
As an example of how the Java Virtual Machine uses the information it stores in the method area, consider these classes: 为了展示虚拟机如何使用方法区中的信息,我们举个例子,看下面 阅读全文
posted @ 2021-01-16 13:12
ppjj
阅读(162)
评论(0)
推荐(0)
摘要:
对于大多数应用来说,Java堆(Java Heap)是Java虚拟机所管理的内存中最大的一块。Java堆是被所有线程共享的一块内存区域,在虚拟机启动时创建。此内存区域的唯一目的就是存放对象实例,几乎所有的对象实例都在这里分配内存。这一点在Java虚拟机规范中的描述是:所有的对象实例以及数组都要在堆上 阅读全文
posted @ 2021-01-16 13:10
ppjj
阅读(129)
评论(0)
推荐(0)
摘要:
程序计数器(Program Counter Register)是一块较小的内存空间,它的作用可以看做是当前线程所执行的字节码的行号指示器。在虚拟机的概念模型里(仅是概念模型,各种虚拟机可能会通过一些更高效的方式去实现),字节码解释器工作时就是通过改变这个计数器的值来选取下一条需要执行的字节码指令,分 阅读全文
posted @ 2021-01-16 13:09
ppjj
阅读(346)
评论(0)
推荐(0)

浙公网安备 33010602011771号