comparison src/share/vm/classfile/classFileParser.cpp @ 7183:b2dbd323c668

8003848: Make ConstMethod::generic_signature_index optional and move Method::_max_stack to ConstMethod. Summary: Make ConstMethod::generic_signature_index optional and move Method::_max_stack to ConstMethod. Reviewed-by: bdelsart, sspitsyn, coleenp
author jiangli
date Tue, 27 Nov 2012 17:03:56 -0500
parents 070d523b96a7
children 5fafdef522c6
comparison
equal deleted inserted replaced
7165:e1d42ba865de 7183:b2dbd323c668
2182 2182
2183 // All sizing information for a Method* is finally available, now create it 2183 // All sizing information for a Method* is finally available, now create it
2184 Method* m = Method::allocate( 2184 Method* m = Method::allocate(
2185 loader_data, code_length, access_flags, linenumber_table_length, 2185 loader_data, code_length, access_flags, linenumber_table_length,
2186 total_lvt_length, exception_table_length, checked_exceptions_length, 2186 total_lvt_length, exception_table_length, checked_exceptions_length,
2187 ConstMethod::NORMAL, CHECK_(nullHandle)); 2187 generic_signature_index, ConstMethod::NORMAL, CHECK_(nullHandle));
2188 2188
2189 ClassLoadingService::add_class_method_size(m->size()*HeapWordSize); 2189 ClassLoadingService::add_class_method_size(m->size()*HeapWordSize);
2190 2190
2191 // Fill in information from fixed part (access_flags already set) 2191 // Fill in information from fixed part (access_flags already set)
2192 m->set_constants(cp()); 2192 m->set_constants(cp());
2193 m->set_name_index(name_index); 2193 m->set_name_index(name_index);
2194 m->set_signature_index(signature_index); 2194 m->set_signature_index(signature_index);
2195 m->set_generic_signature_index(generic_signature_index);
2196 #ifdef CC_INTERP 2195 #ifdef CC_INTERP
2197 // hmm is there a gc issue here?? 2196 // hmm is there a gc issue here??
2198 ResultTypeFinder rtf(cp->symbol_at(signature_index)); 2197 ResultTypeFinder rtf(cp->symbol_at(signature_index));
2199 m->set_result_index(rtf.type()); 2198 m->set_result_index(rtf.type());
2200 #endif 2199 #endif