< prev index next >

src/hotspot/share/classfile/classFileParser.cpp

Print this page

        

@@ -660,10 +660,11 @@
 
           if (sig->char_at(0) == JVM_SIGNATURE_FUNC) {
             // Format check method name and signature
             verify_legal_method_name(name, CHECK);
             verify_legal_method_signature(name, sig, CHECK);
+            _method_sig_count++;
           } else {
             // Format check field name and signature
             verify_legal_field_name(name, CHECK);
             verify_legal_field_signature(name, sig, CHECK);
           }

@@ -5666,10 +5667,12 @@
         }
       }
     }
   }
 
+  ik->set_method_sig_count(_method_sig_count);
+
   JFR_ONLY(INIT_ID(ik);)
 
   // If we reach here, all is well.
   // Now remove the InstanceKlass* from the _klass_to_deallocate field
   // in order for it to not be destroyed in the ClassFileParser destructor.

@@ -5795,10 +5798,11 @@
   _method_ordering(NULL),
   _all_mirandas(NULL),
   _vtable_size(0),
   _itable_size(0),
   _num_miranda_methods(0),
+  _method_sig_count(0),
   _rt(REF_NONE),
   _protection_domain(protection_domain),
   _access_flags(),
   _pub_level(pub_level),
   _bad_constant_seen(0),
< prev index next >