Don't strcpy in os::strdup, use memcpy instead

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 25
    • Affects Version/s: None
    • Component/s: hotspot
    • b21

      Since the length is known from a strlen, memcpy can be used instead of strcpy. This avoids two passes over the string to find the terminating NUL character.

            Assignee:
            Anton Artemov
            Reporter:
            Johan Sjölen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: