< prev index next >

src/share/vm/jfr/jni/jfrJavaSupport.cpp

Print this page
rev 9060 : 8216064: -XX:StartFlightRecording:settings= doesn't work properly
Reviewed-by: mgronlun

*** 164,174 **** InstanceKlass* const klass = static_cast<InstanceKlass*>(args->klass()); klass->initialize(CHECK); const int array_length = args->array_length(); ! if (array_length > 0) { array_construction(args, result, klass, array_length, CHECK); } else { object_construction(args, result, klass, THREAD); } } --- 164,174 ---- InstanceKlass* const klass = static_cast<InstanceKlass*>(args->klass()); klass->initialize(CHECK); const int array_length = args->array_length(); ! if (array_length >= 0) { array_construction(args, result, klass, array_length, CHECK); } else { object_construction(args, result, klass, THREAD); } }
< prev index next >