Uploaded image for project: 'JikesRVM'
  1. JikesRVM
  2. RVM-900

aligned32Copy can copy 8 bytes when number of bytes to copy is 0

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 3.1.1
    • Fix Version/s: 3.1.2
    • Component/s: Runtime
    • Labels:
      None
    • Environment:

      ia32 with SSE2 enabled

      Description

      when BYTES_IN_COPY == 8 then aligned32Copy in org.jikesrvm.runtime.Memory can incorrectly copy 8 bytes (4bytes + 4 bytes) when src is 4 byte aligned. The attached patch adds a series of assertions that verify the assumptions described in the Javadoc and an explicit check for if numBytes == 0

        Attachments

          Activity

            People

            • Assignee:
              zyridium Daniel Frampton
              Reporter:
              l.hellyer@kent.ac.uk Laurence Hellyer
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: