Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8053902

Fix for 8030115 breaks build on Windows and Solaris

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P1 P1
    • 9
    • 8u60, 9
    • 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.

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

                Created:
                Updated:
                Resolved: