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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 11
    • 11
    • hotspot
    • b15

        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.

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

                Created:
                Updated:
                Resolved: