Mercurial > hg > truffle
comparison 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 |
comparison
equal
deleted
inserted
replaced
1444:c0e244017dad | 1445:a7b84a5e16c6 |
---|---|
570 } | 570 } |
571 return false; | 571 return false; |
572 } | 572 } |
573 | 573 |
574 objArrayOop instanceKlass::allocate_objArray(int n, int length, TRAPS) { | 574 objArrayOop instanceKlass::allocate_objArray(int n, int length, TRAPS) { |
575 if (length < 0) THROW_0(vmSymbols::java_lang_NegativeArraySizeException()); | 575 if (length < 0) { |
576 THROW_0(vmSymbols::java_lang_NegativeArraySizeException()); | |
577 } | |
576 if (length > arrayOopDesc::max_array_length(T_OBJECT)) { | 578 if (length > arrayOopDesc::max_array_length(T_OBJECT)) { |
577 report_java_out_of_memory("Requested array size exceeds VM limit"); | 579 report_java_out_of_memory("Requested array size exceeds VM limit"); |
578 THROW_OOP_0(Universe::out_of_memory_error_array_size()); | 580 THROW_OOP_0(Universe::out_of_memory_error_array_size()); |
579 } | 581 } |
580 int size = objArrayOopDesc::object_size(length); | 582 int size = objArrayOopDesc::object_size(length); |