上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 81 下一页
摘要: 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 阅读(125) 评论(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 阅读(187) 评论(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 阅读(94) 评论(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 阅读(195) 评论(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 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 对于大多数应用来说,Java堆(Java Heap)是Java虚拟机所管理的内存中最大的一块。Java堆是被所有线程共享的一块内存区域,在虚拟机启动时创建。此内存区域的唯一目的就是存放对象实例,几乎所有的对象实例都在这里分配内存。这一点在Java虚拟机规范中的描述是:所有的对象实例以及数组都要在堆上 阅读全文
posted @ 2021-01-16 13:10 ppjj 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 程序计数器(Program Counter Register)是一块较小的内存空间,它的作用可以看做是当前线程所执行的字节码的行号指示器。在虚拟机的概念模型里(仅是概念模型,各种虚拟机可能会通过一些更高效的方式去实现),字节码解释器工作时就是通过改变这个计数器的值来选取下一条需要执行的字节码指令,分 阅读全文
posted @ 2021-01-16 13:09 ppjj 阅读(288) 评论(0) 推荐(0) 编辑
摘要: 与程序计数器一样,Java虚拟机栈(Java Virtual Machine Stacks)也是线程私有的,它的生命周期与线程相同。虚拟机栈描述的是Java方法执行的内存模型:每个方法被执行的时候都会同时创建一个栈帧(Stack Frame①)用于存储局部变量表、操作栈、动态链接、方法出口等信息。每 阅读全文
posted @ 2021-01-16 13:08 ppjj 阅读(173) 评论(0) 推荐(0) 编辑
摘要: The stack frame has three parts: local variables, operand stack, and frame data. The sizes of the local variables and operand stack, which are measure 阅读全文
posted @ 2021-01-16 13:07 ppjj 阅读(141) 评论(0) 推荐(0) 编辑
摘要: The local variables section of the Java stack frame is organized as a zero-based array of words. Instructions that use a value from the local variable 阅读全文
posted @ 2021-01-16 13:05 ppjj 阅读(572) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 81 下一页