
方法区
文章平均质量分 77
denverj
这个作者很懒,什么都没留下…
展开
-
JVM学习笔记-方法区(Method Area)
方法区(Method Area)与Java堆一样,是各个线程共享的内存区域,它用于存储已被虚拟机加载的类信息、常量、静态变量、即时编译器编译后的代码等数据。虽然Java虚拟机规范把方法区描述为堆的一个逻辑部分,但是它却有一个别名叫做Non-Heap(非堆),目的应该是与Java堆区分开来。 对于习惯在HotSpot虚拟机上开发和部署程序的开发者来说,很多人愿意把方法区称为“永久...原创 2011-10-25 09:21:59 · 292 阅读 · 0 评论 -
JVM学习笔记-类型信息(Type Information)
For each type it loads, a Java Virtual Machine must store the following kinds of information in the method area: 对每个装载的类型,虚拟机都会在方法区中存储以下类型信息:The fully qualified name of the type这个类型的全限定名...原创 2011-10-25 09:50:14 · 255 阅读 · 0 评论 -
JVM学习笔记-常量池(Constant Pool)
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 literals (string, integer, and floating...原创 2011-10-25 09:50:54 · 1692 阅读 · 0 评论 -
JVM学习笔记-字段信息(Field Information)
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 order in which the fields are declared by th...原创 2011-10-25 09:51:02 · 204 阅读 · 0 评论 -
JVM学习笔记-方法信息(Method Information)
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 declared by the class or interface must be ...原创 2011-10-25 09:51:17 · 164 阅读 · 0 评论 -
JVM学习笔记-类(静态)变量(Class Variables)
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 the class--not with instances of the class...原创 2011-10-26 16:46:53 · 194 阅读 · 0 评论 -
JVM学习笔记-指向ClassLoader类的引用(A Reference to Class ClassLoader)
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 object. For those types loaded via a class...原创 2011-10-26 16:47:05 · 158 阅读 · 0 评论 -
JVM学习笔记-指向Class类的引用(A Reference to Class Class)
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 reference to the Class instance for a type ...原创 2011-10-26 16:47:21 · 292 阅读 · 0 评论 -
JVM学习笔记-方法区示例与常量池解析(Method Area Use And Constant Pool Resolution)
As an example of how the Java Virtual Machine uses the information it stores in the method area, consider these classes:为了展示虚拟机如何使用方法区中的信息,我们举个例子,看下面这个类:begin// On CD-ROM in file jvm/ex2/La...原创 2011-10-26 16:47:52 · 157 阅读 · 0 评论