GC abstraction for Assembler::needs_explicit_null_check()

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 12
    • Affects Version/s: 12
    • Component/s: hotspot
    • gc
    • b20
    • generic
    • generic

      GCs (like Shenandoah) may emit additional loads or stores. In the case of Shenandoah, we emit forward pointer loads from offset -8. Those accesses don't match the pattern currently checked in Assembler::needs_explicit_null_check() which means that explicit null checks would be emitted for forwarding pointer loads. But we don't want that because we know that the base object cannot be NULL (everything else would be an error).

            Assignee:
            Roman Kennke
            Reporter:
            Roman Kennke
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: