[lworld] RFR: 8367415: Fully encapsulate array allocation in oopFactory
Frederic Parain
fparain at openjdk.org
Mon Sep 22 19:20:44 UTC 2025
On Fri, 19 Sep 2025 14:32:56 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:
> This makes oopFactory and deoptimization the only friends of private ArrayKlass::allocate_instance. This is similar to the PR https://github.com/openjdk/jdk/pull/27372 in mainline with some extra handling for new_refArray (rather than calling RefArrayKlass::allocate_instance() directly.
> Tested with tier1-4.
src/hotspot/share/oops/objArrayKlass.hpp line 95:
> 93: int n, Klass* element_klass, TRAPS);
> 94:
> 95: public:
Is this needed? There's already one at line 60.
-------------
PR Review Comment: https://git.openjdk.org/valhalla/pull/1602#discussion_r2369978678
More information about the valhalla-dev
mailing list