The constant pool currently has a lot of methods specific to extracting parts of the operands array. What this array actually is, is a sequence of bootstrap method attribute entries, which has the following components:
struct BSMAE {
u2 _bootstrap_method_index;
u2 _argument_count;
u2 _arguments[_argument_count];
}
We can removes some of these operands array specific methods, and instead allows you to extract BSMAttributeEntrys which you can then use to extract its piece wise components. This makes for a nicer interface, and a bit easier to come into as a reader of the code, as it more closely mirrors the JVMS.
struct BSMAE {
u2 _bootstrap_method_index;
u2 _argument_count;
u2 _arguments[_argument_count];
}
We can removes some of these operands array specific methods, and instead allows you to extract BSMAttributeEntrys which you can then use to extract its piece wise components. This makes for a nicer interface, and a bit easier to come into as a reader of the code, as it more closely mirrors the JVMS.
- links to
-
Review(master) openjdk/jdk/25298