The fix pushed for JDK-8030115 does not compile on Windows or Solaris, due to this part of the change:
@@ -195,16 +197,24 @@
jvm_providers = (JVM_DTraceProvider*)calloc(
num_providers, sizeof(*jvm_providers));
- for (i = 0; i < num_providers; ++i) {
- JVM_DTraceProvider* p = &(jvm_providers[i]);
+ int count = 0;
+ for (; count < num_providers; ++count) {
+ JVM_DTraceProvider* p = &(jvm_providers[count]);
jobject provider = (*env)->GetObjectArrayElement(
The variable declaration in the middle of the function is causing an error.