提交 8aa3462d 编写于 作者: D dsamersoff

8053902: Fix for 8030115 breaks build on Windows and Solaris

Summary: Move variable definition to top of function
Reviewed-by: prr
上级 a3aa74a5
......@@ -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(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册