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

Fully encapsulate array allocation in oopFactory

XMLWordPrintable

      objArrayKlass::allocate_instance() in Valhalla is a public method currently.

      Since Valhalla complicates allocation of arrays, with different "flavors" (ArrayProperties), it would be best to mark it private, and only allow the oopFactory to use it.

      Ad-hoc uses elsewhere will be hard to maintain as ArrayProperties evolve.

      Note there may remain "friend" use from mainline allowing circumvention (i.e. Deoptimization).

            coleenp Coleen Phillimore
            dsimms David Simms
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: