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

Factor null-check into load_klass() calls

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 21
    • 21
    • 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.

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

              Created:
              Updated:
              Resolved: