comparison src/share/vm/classfile/classFileParser.cpp @ 17853:a18dafb24f80

Merge
author asaha
date Fri, 14 Mar 2014 22:57:00 -0700
parents 9acf9c25774d 9b289963cb9a
children b6a2ba7d3ea7
comparison
equal deleted inserted replaced
17702:0c8d4e3b5c9a 17853:a18dafb24f80
2775 2775
2776 guarantee_property(_max_bootstrap_specifier_index < attribute_array_length, 2776 guarantee_property(_max_bootstrap_specifier_index < attribute_array_length,
2777 "Short length on BootstrapMethods in class file %s", 2777 "Short length on BootstrapMethods in class file %s",
2778 CHECK); 2778 CHECK);
2779 2779
2780 guarantee_property(attribute_byte_length > sizeof(u2),
2781 "Invalid BootstrapMethods attribute length %u in class file %s",
2782 attribute_byte_length,
2783 CHECK);
2784
2780 // The attribute contains a counted array of counted tuples of shorts, 2785 // The attribute contains a counted array of counted tuples of shorts,
2781 // represending bootstrap specifiers: 2786 // represending bootstrap specifiers:
2782 // length*{bootstrap_method_index, argument_count*{argument_index}} 2787 // length*{bootstrap_method_index, argument_count*{argument_index}}
2783 int operand_count = (attribute_byte_length - sizeof(u2)) / sizeof(u2); 2788 int operand_count = (attribute_byte_length - sizeof(u2)) / sizeof(u2);
2784 // operand_count = number of shorts in attr, except for leading length 2789 // operand_count = number of shorts in attr, except for leading length