mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8205683: Refactor heap allocation to separate concerns
Reviewed-by: pliden, kbarrett
This commit is contained in:
parent
7f3a801cae
commit
e4dbe9909f
22 changed files with 638 additions and 528 deletions
|
@ -142,8 +142,8 @@ objArrayOop ArrayKlass::allocate_arrayArray(int n, int length, TRAPS) {
|
|||
int size = objArrayOopDesc::object_size(length);
|
||||
Klass* k = array_klass(n+dimension(), CHECK_0);
|
||||
ArrayKlass* ak = ArrayKlass::cast(k);
|
||||
objArrayOop o =
|
||||
(objArrayOop)CollectedHeap::array_allocate(ak, size, length, CHECK_0);
|
||||
objArrayOop o = (objArrayOop)Universe::heap()->array_allocate(ak, size, length,
|
||||
/* do_zero */ true, CHECK_0);
|
||||
// initialization to NULL not necessary, area already cleared
|
||||
return o;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue