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

Finalize API for memory copy

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: New
    • Priority: P3
    • Resolution: Unresolved
    • Affects Version/s: repo-panama
    • Fix Version/s: None
    • Component/s: tools

      Description

      When we introduced the MemoryCopy helper class, few issues were raised:

      * the order of arguments diverges from that of other JDK APIs (although we acknowledged that there was no other API quite like this)

      * the naming of parameters felt too heavy, as distinguishing between "index" and "offset" is probably good enough

      * naming of the method seems too verbose as well, with copyFromArray and copyToArray - which can be inferred from position of arguments.

      * it would probably be a good idea to add some limited support for complex memory segment copy in this class as well.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mcimadamore Maurizio Cimadamore
              Reporter:
              mcimadamore Maurizio Cimadamore
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated: