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

Remove dead code from RequiresSetenv function in java.base/unix/native/libjli/java_md.c

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 24
    • None
    • tools
    • b17

      The RequiresSetenv in the unix version of java_md.c has code of the form:

      if (llp == NULL && dmllp == NULL) {

      and

      if (dmllp != NULL && ContainsLibJVM(dmllp)) {
              return JNI_TRUE;
      }

      The dmllp is a local variable in that function, which never set to a non-null value:

      char *dmllp = NULL;

      Effectively there is some dead code in that function.

      I suspect this is a left-over from the data model selection removal that was done as part of https://bugs.openjdk.org/browse/JDK-8244224.

            jpai Jaikiran Pai
            jpai Jaikiran Pai
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: