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

Cleanup the usage of os::file_name_strcmp() in SharedPathsMiscInfo::check()

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 11
    • Fix Version/s: 11
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b15

      Backports

        Description

        In SharedPathsMiscInfo::check(), os::file_name_strcmp() is called to compare the runtime path string with dump time path string. If the runtime path is longer than the dump time path, we need to copy the leading entries of the runtime path to a temporary string before the comparison. The length of the copied string is the same as the dump time path string. This operation is inefficient and could be error prone.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  jiangli Jiangli Zhou
                  Reporter:
                  jiangli Jiangli Zhou
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: