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

Shenandoah: C2: Make in-native LRB special case of normal LRB

XMLWordPrintable

    • gc
    • b07
    • generic
    • generic

      Currently, IN_NATIVE LRB generates a runtime call during parsing in C2. This may break optimizations. It is known to break the mirror->Klass*->mirror / Klass*->mirror->Klass* optimizations, and possibly some others too (e.g. wholesale elimination of the barrier on new/constant objects).

      It seems better to emit the normal LoadReferenceBarrier, with a special property 'native' instead, and only generate different runtime-call-addresses.

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

              Created:
              Updated:
              Resolved: