changeset 10378:2b1a17af5308

8053902: Fix for 8030115 breaks build on Windows and Solaris Summary: Move variable definition to top of function Reviewed-by: prr
author dsamersoff
date Tue, 29 Jul 2014 13:08:27 -0700
parents 607b15cdc425
children d47f44d38bab
files src/share/native/sun/tracing/dtrace/JVM.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/native/sun/tracing/dtrace/JVM.c	Tue Jul 29 10:06:02 2014 +0200
+++ b/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(