< prev index next >

src/hotspot/share/jfr/jni/jfrJavaCall.cpp

Print this page

        

@@ -182,20 +182,20 @@
         ShouldNotReachHere();
     }
   }
 }
 
-JfrJavaArguments::JfrJavaArguments(JavaValue* result) : _result(result), _klass(NULL), _name(NULL), _signature(NULL), _array_length(-1) {
+JfrJavaArguments::JfrJavaArguments(JavaValue* result) : _result(result), _klass(NULL), _name(NULL), _signature(NULL), _array_length(0) {
   assert(result != NULL, "invariant");
 }
 
 JfrJavaArguments::JfrJavaArguments(JavaValue* result, const char* klass_name, const char* name, const char* signature, TRAPS) :
   _result(result),
   _klass(NULL),
   _name(NULL),
   _signature(NULL),
-  _array_length(-1) {
+  _array_length(0) {
   assert(result != NULL, "invariant");
   if (klass_name != NULL) {
     set_klass(klass_name, CHECK);
   }
   if (name != NULL) {

@@ -208,11 +208,11 @@
 
 JfrJavaArguments::JfrJavaArguments(JavaValue* result, const Klass* klass, const Symbol* name, const Symbol* signature) : _result(result),
   _klass(NULL),
   _name(NULL),
   _signature(NULL),
-  _array_length(-1) {
+  _array_length(0) {
   assert(result != NULL, "invariant");
   if (klass != NULL) {
     set_klass(klass);
   }
   if (name != NULL) {
< prev index next >