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
- 这个类型的全限定名
- The fully qualified name of the type’s direct superclass (unless the type is
an interface or class java.lang.Object, neither
of which have a superclass)
- 这个类型的直接超类的全限定名(除非这个类是java.lang.Object,它没有超类)。
- Whether or not the type is a class or an interface
- 这个类型是类类型还是接口类型
- The typeís modifiers ( some subset of` public, abstract,
final)
- 这个类型的访问修饰符(public, abstract或final的某个子集)。
- An ordered list of the fully qualified names of any direct
superinterfaces
- 任何直接超接口的全限定名的有序列表
Inside the Java class file and Java Virtual Machine, type names are always
stored as fully qualified names. In Java source code, a fully qualified
name is the name of a typeís package, plus a dot, plus the typeís simple
name. For example, the fully qualified name of class Object in package java.lang is java.lang.Object. In class files, the dots are
replaced by slashes, as in java/lang/Object. In
the method area, fully qualified names can be represented in whatever form and
data structures a designer chooses.
在Java class文件和虚拟机中,类型名总是以全限定名出现。在Java源代码中,全限定名由类所属包的名称加一个“.”,再加上类名组成。例如,类Object的所属包为java.lang,那么它的全限定名应该是java.lang.Object,但在class文件里,所有的“.” 都被斜杠“/”代替,这样就成为java/lang/Object。至于全限定名在方法区中的表示,则因不同的设计者有不同的选择而不同,可以用任何形式和数据结构来表示。
In addition to the basic type information listed above, the virtual machine
must also store for each loaded type:
除了上面列出的基本类型信息外,虚拟机还得为每个被装载的类型存储以下信息:
- The constant pool for the type
- 该类型的常量池
- Field information
- 字段信息
- Method information
- 方法信息
- All class (static) variables declared in the type, except constants
- 除了常量以外的所有类(静态)变量
- A reference to class ClassLoader
- 一个到类CLassLoader的引用
- A reference to class Class
- 一个到Class类的引用
分享到:
相关推荐
jvm 调优笔记-jvm
Moonbox(月光宝盒)是JVM-Sandbox生态下的,基于jvm-sandbox-repeater重新开发的一款流量回放平台产品。在jvm-sandbox-repeater基础上提供了更加丰富功能,同时便于线上部署和使用,更多对比参考。 使用场景 你...
nginx-upstream-jvm-route 支持nginx版本1.15 解决nginx: [emerg] invalid parameter "srun_id=tomcat1" 问题
JVM调优总结 -Xms -Xmx -Xmn -Xss
赠送Maven依赖信息文件:metrics-jvm-3.1.5.pom; 包含翻译后的API文档:metrics-jvm-3.1.5-javadoc-API文档-中文(简体)版.zip; Maven坐标:io.dropwizard.metrics:metrics-jvm:3.1.5; 标签:jvm、metrics、...
赠送Maven依赖信息文件:metrics-jvm-3.1.5.pom; 包含翻译后的API文档:metrics-jvm-3.1.5-javadoc-API文档-中文(简体)-英语-对照版.zip; Maven坐标:io.dropwizard.metrics:metrics-jvm:3.1.5; 标签:jvm、...
JVM性学习笔记-基本原理,内存模型,JVM参数设置,类加载器原理,JDK自带工具
jvm-full-gc调优-jvm-full-gc
nginx-upstream-jvm-route-0.1.tar.gz 用来实现Nginx Tomcat 集群session复制的问题!
mini-jvm in rust实现jvm,jvm-rs-main.zip
一份JVM学习的笔记,含查看JVM运行时信息\JVM垃圾收集信息\JVM锁信息等
代码如下:failed to create jvm error code -4 这一般应是内存不够用所致,解决方法参考如下。 打开 Android Studio 安装目录下的bin目录,查找并打开文件 studio.exe.vmoptions,修改代码: 代码如下:-Xmx512m 为...
JVM调优总结 -Xms -Xmx -Xmn -Xss JVM调优总结 -Xms -Xmx -Xmn -Xss
nginx_upstream_jvm_route 是一个 Nginx 的扩展模块,用来实现基于 Cookie 的 Session Sticky 的功能。 安装方法(进入Nginx源码目录): #patch -p0 < /path/to/this/directory/jvm_route.patch # ./configure -...
JVM,MIB,可通过SNMP协议监控JVM运行情况
Java分布式应用学习笔记-谈JVM
java之jvm学习笔记十一(访问控制器)-源码
JVM规范--高手总结 Java相关 1 1.1Java定义 1 1.2Java的开发流程 1 1.3Java运行的原理 2 1.4半编译半解释 3 1.5平台无关性 4 JVM内存模型 4 2.1 JVM规范 5 2.2 Sun JVM 8 2.3 SUN JVM内存管理(优化) 10 2.4 SUN JVM...
jvm性能调优-jvm内存模型和优化-performance-jvm-memorymodel-optimize
jvm调优学习-optimizeJVM