Fix for 8030115 breaks build on Windows and Solaris

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P1
    • 9
    • Affects Version/s: 8u60, 9
    • Component/s: hotspot
    • svc
    • b26
    • generic
    • solaris, windows
    • Verified

        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.

              Assignee:
              Dmitriy Samersoff
              Reporter:
              David Dehaven (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: