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

Add Copy::disjoint_bytes

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P4 P4
    • tbd
    • 16
    • hotspot
    • None

      We currently don't have Copy::disjoint_bytes. The lack of this function leads us to use bare memcpy in many places instead of using Copy, effectively denormalizing the use of Copy. Folks forget it even exists, because bare memcpy (and even the occasional bare memmove instead of Copy::conjoint_bytes) is so common in our code.

      Also change uses of bare memcpy to use the new function. Also change bare memmove's to Copy::conjoint_bytes.

      We should also have an _atomic variant, to go with the existing Copy::conjoint_jbytes_atomic.

            Unassigned Unassigned
            kbarrett Kim Barrett
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: