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

[lworld] Optimization added by JDK-8228622 only applies to null-free, flat arrays

XMLWordPrintable

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

      The optimization added by JDK-8228622 assumes that when we load from an unknown array via 'Parse::load_from_unknown_flat_array' and then cast the result to a non-value class, we can deduce that the array is not flat if the cast succeeds. That only applies to null-free, flat but not to nullable, flat arrays (since JDK-8341767) because null will pass the cast. The relevant tests in TestLWorld.java are marked with "// TODO 8355382".

      See https://mail.openjdk.org/pipermail/valhalla-dev/2019-September/006325.html for details of JDK-8228622.

            Unassigned Unassigned
            thartmann Tobias Hartmann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: