# HG changeset patch # User dsamersoff # Date 1406664507 25200 # Node ID 49d8c933dd62c48299b9fa53d837f37040ee8982 # Parent 2fc68d1b7c0377927536358b9b750af15ae89759 8053902: Fix for 8030115 breaks build on Windows and Solaris Summary: Move variable definition to top of function Reviewed-by: prr diff -r 2fc68d1b7c03 -r 49d8c933dd62 jdk/src/share/native/sun/tracing/dtrace/JVM.c --- 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(