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

GC abstraction for Assembler::needs_explicit_null_check()

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 12
    • 12
    • hotspot
    • gc
    • b20
    • generic
    • generic

    Description

      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).

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: