From 8aa3462da2585c0d669717aa55edc07a26d8a684 Mon Sep 17 00:00:00 2001 From: dsamersoff Date: Tue, 29 Jul 2014 13:08:27 -0700 Subject: [PATCH] 8053902: Fix for 8030115 breaks build on Windows and Solaris Summary: Move variable definition to top of function Reviewed-by: prr --- src/share/native/sun/tracing/dtrace/JVM.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/share/native/sun/tracing/dtrace/JVM.c b/src/share/native/sun/tracing/dtrace/JVM.c index b0c974025..ba54d8ecb 100644 --- a/src/share/native/sun/tracing/dtrace/JVM.c +++ b/src/share/native/sun/tracing/dtrace/JVM.c @@ -184,6 +184,7 @@ JNIEXPORT jlong JNICALL Java_sun_tracing_dtrace_JVM_activate0( jlong handle = 0; jsize num_providers; jsize i; + jsize count = 0; JVM_DTraceProvider* jvm_providers; initialize(); @@ -197,7 +198,6 @@ JNIEXPORT jlong JNICALL Java_sun_tracing_dtrace_JVM_activate0( 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( -- GitLab