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

Finalize API for memory copy

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • None
    • repo-panama
    • tools

      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.

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

              Created:
              Updated:
              Resolved: