Factor null-check into load_klass() calls

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 21
    • Affects Version/s: 21
    • Component/s: hotspot
    • None
    • b11
    • x86, x86_64, aarch64
    • generic

      In several asm routines, a pattern like the following can be found:

              __ null_check(obj, oopDesc::klass_offset_in_bytes());
              __ load_klass(klass, obj, tmp);

      The null-check logically belongs into load_klass(), though. This becomes apparent in Lilliput, where the klass-offset is different, depending on whether or not Lilliput is enabled.

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

              Created:
              Updated:
              Resolved: