8053902: Fix for 8030115 breaks build on Windows and Solaris
Summary: Move variable definition to top of function
Reviewed-by: prr
--- a/jdk/src/share/native/sun/tracing/dtrace/JVM.c Tue Jul 29 10:06:02 2014 +0200
+++ b/jdk/src/share/native/sun/tracing/dtrace/JVM.c Tue Jul 29 13:08:27 2014 -0700
@@ -184,6 +184,7 @@
jlong handle = 0;
jsize num_providers;
jsize i;
+ jsize count = 0;
JVM_DTraceProvider* jvm_providers;
initialize();
@@ -197,7 +198,6 @@
jvm_providers = (JVM_DTraceProvider*)calloc(
num_providers, sizeof(*jvm_providers));
- int count = 0;
for (; count < num_providers; ++count) {
JVM_DTraceProvider* p = &(jvm_providers[count]);
jobject provider = (*env)->GetObjectArrayElement(