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

Fix for 8030115 breaks build on Windows and Solaris

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1
    • Resolution: Fixed
    • Affects Version/s: 8u60, 9
    • Fix Version/s: 9
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
      svc
    • Resolved In Build:
      b26
    • CPU:
      generic
    • OS:
      solaris, windows
    • Verification:
      Verified

      Backports

        Description

        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.

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved: