Mercurial > hg > truffle
diff 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 |
line wrap: on
line diff
--- a/src/share/vm/oops/instanceKlass.cpp Mon Feb 21 19:17:33 2011 +0100 +++ b/src/share/vm/oops/instanceKlass.cpp Mon Feb 21 19:28:35 2011 +0100 @@ -620,9 +620,7 @@ } objArrayOop instanceKlass::allocate_objArray(int n, int length, TRAPS) { - if (length < 0) { - THROW_0(vmSymbols::java_lang_NegativeArraySizeException()); - } + if (length < 0) THROW_0(vmSymbols::java_lang_NegativeArraySizeException()); if (length > arrayOopDesc::max_array_length(T_OBJECT)) { report_java_out_of_memory("Requested array size exceeds VM limit"); THROW_OOP_0(Universe::out_of_memory_error_array_size());