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

XMLWordPrintable

    • b20

      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.

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

              Created:
              Updated:
              Resolved: