Mercurial > hg > truffle
comparison src/share/vm/oops/instanceKlass.cpp @ 2212:d9e4d0aefc90
Small clean up to reduce delta to OpenJDK.
author | Thomas Wuerthinger <thomas.wuerthinger@gmail.com> |
---|---|
date | Mon, 21 Feb 2011 19:28:35 +0100 |
parents | d25d4ca69222 |
children | 2ab52cda08e5 |
comparison
equal
deleted
inserted
replaced
2211:0cd39a385a72 | 2212:d9e4d0aefc90 |
---|---|
618 } | 618 } |
619 return false; | 619 return false; |
620 } | 620 } |
621 | 621 |
622 objArrayOop instanceKlass::allocate_objArray(int n, int length, TRAPS) { | 622 objArrayOop instanceKlass::allocate_objArray(int n, int length, TRAPS) { |
623 if (length < 0) { | 623 if (length < 0) THROW_0(vmSymbols::java_lang_NegativeArraySizeException()); |
624 THROW_0(vmSymbols::java_lang_NegativeArraySizeException()); | |
625 } | |
626 if (length > arrayOopDesc::max_array_length(T_OBJECT)) { | 624 if (length > arrayOopDesc::max_array_length(T_OBJECT)) { |
627 report_java_out_of_memory("Requested array size exceeds VM limit"); | 625 report_java_out_of_memory("Requested array size exceeds VM limit"); |
628 THROW_OOP_0(Universe::out_of_memory_error_array_size()); | 626 THROW_OOP_0(Universe::out_of_memory_error_array_size()); |
629 } | 627 } |
630 int size = objArrayOopDesc::object_size(length); | 628 int size = objArrayOopDesc::object_size(length); |