openj9 icon indicating copy to clipboard operation
openj9 copied to clipboard

Recognize unsafe unaligned getters/setters

Open nbhuiyan opened this issue 8 months ago • 3 comments

This PR re-introduces changes in #19420 and addresses the review comments received there.

Contrary to the discussion in #19420, I have not found any evidence that unaligned access is not permitted in Z only. Existing CG flag SupportsAlignedAccessOnly has been used for some versions of Power as well as aarch64 and arm32. Supporting unaligned access is something that most platforms are capable of, and therefore the default behaviour should be to transform the unaligned access operation methods, unless a back-end sets the SupportsAlignedAccessOnly flag.

nbhuiyan avatar Jun 10 '24 20:06 nbhuiyan