Others directly reference values from the constant pool.
其它指令直接引用常量池中的值。
Following the constant pool are several items that reference constant pool entries for the class itself, its super class, and interfaces.
常量池后面还有几项,它们引用了类本身、其超类以及接口的常量池项。
Items in the constant pool are variable length, with the first byte of each item identifying the type of item and how it should be decoded.
常量池中各项的长度是可变的,每项的第一个字节标识项的类型以及对它解码的方式。
The key point is just that the constant pool contains all the references to other classes and methods used by this class, along with the actual definitions for this class and its methods.
关键之处在于常量池包含对该类所用的其它类和方法的所有引用,还包含了该类及其方法的实际定义。
A modified class loader USES template files that look almost exactly like ordinary class files except for "holes" in the constant pool that are filled in at load time for each instantiation class.
修改的类装入器使用看上去几乎与普通类文件完全一样的模板文件,不同的是这个模板文件在常量池中有一些“洞”,在装入时为每个实例化类填充这些“洞”。
No, the constant pool is fixed.
不,常量池是固定的。
Or are there other mechanisms how a Class entry may get into the constant pool?
或者有其他机制类条目可以进入常量池吗?
As mentioned earlier, references to types, fields, and methods in the constant pool are initially symbolic.
以前讲过,常量池中对类型、字段和方法的引用在开始时都是符号。
The constant pool can easily make up half or more of the binary class size, though the average proportion is probably less.
常量池往往占到二进制类大小的一半或更多,但平均下来可能要少一些。
The constant pool can easily make up half or more of the binary class size, though the average proportion is probably less.
常量池往往占到二进制类大小的一半或更多,但平均下来可能要少一些。
应用推荐