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

[lworld] Unsound TypeAryPtr calculation of AddPNode

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • repo-valhalla
    • repo-valhalla
    • hotspot

      AddPNode of a _field_offset: bot and a constant does as if the left input is an addition of base and a multiple of the element size. This may be true for all the cases we have but it is sloppy and it is definitely incorrect for Unsafe accesses.

      TypeAryPtr also has its _offset being not really an _offset. We should also fix this inconsistency.

            qamai Quan Anh Mai
            qamai Quan Anh Mai
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: