hotspot/src/share/vm/oops/instanceKlass.cpp
changeset 12114 9a825a536095
parent 11407 5399831730cd
child 12233 38269597dffc
--- a/hotspot/src/share/vm/oops/instanceKlass.cpp	Mon Mar 12 15:28:07 2012 -0700
+++ b/hotspot/src/share/vm/oops/instanceKlass.cpp	Wed Mar 14 20:06:48 2012 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -669,6 +669,7 @@
   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");
+    JvmtiExport::post_array_size_exhausted();
     THROW_OOP_0(Universe::out_of_memory_error_array_size());
   }
   int size = objArrayOopDesc::object_size(length);