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

Shenandoah: null checks in c2 should not skip over native load barrier

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b20

      Description

      C2 optimizes (CmpP (LoadBarrier o) NULL) as (CmpP o NULL). The ative load barrier is not guaranteed to return a non null oop when passed a non null oop so this optimization could lead to a crash.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              roland Roland Westrelin
              Reporter:
              roland Roland Westrelin
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: