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

[lworld] [lw3] Component type of arrays of primitive objects incorrectly loaded at link time

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: repo-valhalla
    • Fix Version/s: None
    • Component/s: hotspot
    • Labels:

      Description

      At class link time, classes of method arguments and return values decorated with a Q-descriptor are eagerly loaded in order to computed optimized calling conventions. Arrays are identity types, even if their component type is a null-free primitive class. There's no point in loading component types of array arguments at link time, because they cannot be optimized in the calling convention as primitive objects are.
      The comment in InstanceKlass::link_class_impl() correctly describes this behavior, but the implementation loads the component type anyway.
       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              fparain Frederic Parain
              Reporter:
              fparain Frederic Parain
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: