src/share/vm/runtime/reflection.cpp

changeset 5211
efe8b7d64424
parent 5210
a589c78a8811
child 5213
4552a7633a07
equal deleted inserted replaced
5210:a589c78a8811 5211:efe8b7d64424
1 /* 1 /*
2 * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
373 } 373 }
374 dim += k_dim; 374 dim += k_dim;
375 } 375 }
376 } 376 }
377 klass = klass->array_klass(dim, CHECK_NULL); 377 klass = klass->array_klass(dim, CHECK_NULL);
378 oop obj = ArrayKlass::cast(klass)->multi_allocate(len, dimensions, THREAD); 378 oop obj = ArrayKlass::cast(klass)->multi_allocate(len, dimensions, CHECK_NULL);
379 assert(obj->is_array(), "just checking"); 379 assert(obj->is_array(), "just checking");
380 return arrayOop(obj); 380 return arrayOop(obj);
381 } 381 }
382 382
383 383

mercurial