src/share/vm/oops/instanceKlass.cpp

changeset 3638
a735aec54ea4
parent 3368
52b5d32fbfaf
child 3672
6522ad563f99
     1.1 --- a/src/share/vm/oops/instanceKlass.cpp	Mon Mar 12 15:28:07 2012 -0700
     1.2 +++ b/src/share/vm/oops/instanceKlass.cpp	Wed Mar 14 20:06:48 2012 -0700
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
     1.7   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.8   *
     1.9   * This code is free software; you can redistribute it and/or modify it
    1.10 @@ -669,6 +669,7 @@
    1.11    if (length < 0) THROW_0(vmSymbols::java_lang_NegativeArraySizeException());
    1.12    if (length > arrayOopDesc::max_array_length(T_OBJECT)) {
    1.13      report_java_out_of_memory("Requested array size exceeds VM limit");
    1.14 +    JvmtiExport::post_array_size_exhausted();
    1.15      THROW_OOP_0(Universe::out_of_memory_error_array_size());
    1.16    }
    1.17    int size = objArrayOopDesc::object_size(length);

mercurial