1 /* |
1 /* |
2 * Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2012, 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. |
91 } |
91 } |
92 assert(t->is_parsable(), "Don't publish unless parsable"); |
92 assert(t->is_parsable(), "Don't publish unless parsable"); |
93 return t; |
93 return t; |
94 } else { |
94 } else { |
95 report_java_out_of_memory("Requested array size exceeds VM limit"); |
95 report_java_out_of_memory("Requested array size exceeds VM limit"); |
|
96 JvmtiExport::post_array_size_exhausted(); |
96 THROW_OOP_0(Universe::out_of_memory_error_array_size()); |
97 THROW_OOP_0(Universe::out_of_memory_error_array_size()); |
97 } |
98 } |
98 } else { |
99 } else { |
99 THROW_0(vmSymbols::java_lang_NegativeArraySizeException()); |
100 THROW_0(vmSymbols::java_lang_NegativeArraySizeException()); |
100 } |
101 } |