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

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.

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

              Created:
              Updated:
              Resolved: