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

Remove InstanceKlass::allocate_objArray

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • None
    • hotspot

      Allocating array instances should be confined to ObjArray::allocate_instance and it's only callers in oopFactory and deoptimization.

      InstanceKlass::allocate_objArray duplicates this functionality and calls heap array_allocate directly and its only caller is oopFactory. So it should be removed.

      This reconciles differences in the valhalla repo where arrays have been reworked to handle flattened arrays of inline/value types.

            coleenp Coleen Phillimore
            coleenp Coleen Phillimore
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: