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 recorded as well as the data. Hereís the list:
对于类型中声明的每一个方法,方法区中必须保存下面的信息。和字段一样,这些方法在类或者接口中的生命顺序也必须保存。下面是方法信息的清单:
- The method's name
- 方法名
- The method's return type (or void)
- 方法的返回类型(或void)
- The number and types (in order) of the method's parameters
- 方法参数的数量和类型(按声明顺序)
- The method's modifiers (some subset of public, private, protected, static, final, synchronized, native, abstract)
- 方法的修饰符(public,private,protected,static,final,volatile,transient的某个子集)
In addition to the items listed above, the following information must also be stored with each method that is not abstract or native:
除上面的清单中列出的条目之外,如果某个方法不是抽象的和本地的,它还必须保存下列信息:
- The method's bytecodes
- 方法的字节码(bytecodes)
- The sizes of the operand stack and local variables sections of the method's stack frame (these are described in a later section of this chapter)
- 操作数栈和该方法的栈帧中的局部变量区的大小
- An exception table (this is described in Chapter 17, "Exceptions")
- 异常表
分类:
jvm
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· 单线程的Redis速度为什么快?
2018-01-16 java递归排序