hotspot/src/share/vm/runtime/signature.cpp
changeset 20702 bbe0fcde6e13
parent 14488 ab48109f7d1b
child 22234 da823d78ad65
--- a/hotspot/src/share/vm/runtime/signature.cpp	Wed Oct 09 11:05:17 2013 -0700
+++ b/hotspot/src/share/vm/runtime/signature.cpp	Wed Oct 09 16:32:21 2013 +0200
@@ -378,6 +378,16 @@
   return result;
 }
 
+int SignatureStream::reference_parameter_count() {
+  int args_count = 0;
+  for ( ; !at_return_type(); next()) {
+    if (is_object()) {
+      args_count++;
+    }
+  }
+  return args_count;
+}
+
 bool SignatureVerifier::is_valid_signature(Symbol* sig) {
   const char* signature = (const char*)sig->bytes();
   ssize_t len = sig->utf8_length();