We're updating the issue view to help you get more done. 

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

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

Environment

ia32 with SSE2 enabled

Status

Assignee

Daniel Frampton

Reporter

Laurence Hellyer

Labels

None

External issue ID

None

Components

Fix versions

Affects versions

3.1.1

Priority

Medium