On Apr 22, 2011, at 7:42 AM, Rémi Forax wrote:
>> 
>> My first move would be to regard this attribute as reserved to a "Code" 
>> attribute,
>> but it seems that data sharing would be increased by putting it a the class 
>> level.
> 
> The BootstrapMethods attribute is a class attribute.
> And you're right that this is not written anywhere :(
> We should fix that too.


Current javadoc:

 * <h3><a name="bsmattr"></a>the {@code BootstrapMethods} attribute </h3>
 * Each {@code CONSTANT_InvokeDynamic} entry contains an index which references
 * a bootstrap method specifier; all such specifiers are contained in a 
separate array.
 * This array is defined by a class attribute named {@code BootstrapMethods}.

This seems to cover it.  I added a comment in the structure summary:

// required attribute on any class containing CONSTANT_InvokeDynamic_info:
struct BootstrapMethods_attr {

-- John
_______________________________________________
mlvm-dev mailing list
mlvm-dev@openjdk.java.net
http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev

Reply via email to