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

[Aarch64] Fix crash in Arrays.equals() intrinsic with -CCP

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 23
    • 23, 24, repo-lilliput-17, repo-lilliput-21, repo-lilliput
    • hotspot
    • b23
    • aarch64

      The implementations of Arrays.equals() in macroAssembler_aarch64.cpp, MacroAssembler::arrays_equals() assumes that the start of arrays is 8-byte-aligned. Since JDK-8139457 this is no longer the case, at least when running with -CompressedClassPointers (or Lilliput). The effect is that the loops may run over the array end, and if the array is at heap boundary, and that memory is unmapped, then it may crash.

            rkennke Roman Kennke
            rkennke Roman Kennke
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: