Mercurial > hg > truffle
diff src/share/vm/oops/instanceKlass.cpp @ 1445:a7b84a5e16c6
Remove caching for constant pool entries (same index can be used to retrieve e.g. type and field). Fast fail on bailout in C1X.
author | Thomas Wuerthinger <wuerthinger@ssw.jku.at> |
---|---|
date | Tue, 09 Nov 2010 13:42:06 +0100 |
parents | e392695de029 |
children | 2d26b0046e0d |
line wrap: on
line diff
--- a/src/share/vm/oops/instanceKlass.cpp Tue Nov 09 12:30:21 2010 +0100 +++ b/src/share/vm/oops/instanceKlass.cpp Tue Nov 09 13:42:06 2010 +0100 @@ -572,7 +572,9 @@ } 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());