changeset 924:d2d605b757aa

Merge
author dcubed
date Fri, 28 Aug 2009 14:30:15 -0600
parents 3cfb7ee91f59 (current diff) 9601152ccfc1 (diff)
children 4ca13e754354
files src/share/vm/oops/instanceKlass.cpp
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/oops/instanceKlass.cpp	Fri Aug 28 11:10:53 2009 -0600
+++ b/src/share/vm/oops/instanceKlass.cpp	Fri Aug 28 14:30:15 2009 -0600
@@ -1085,6 +1085,7 @@
     if (indices == NULL || (length = (size_t)indices[0]) <= idnum) {
       size_t size = MAX2(idnum+1, (size_t)idnum_allocated_count());
       int* new_indices = NEW_C_HEAP_ARRAY(int, size+1);
+      new_indices[0] =(int)size;  // array size held in the first element
       // Copy the existing entries, if any
       size_t i;
       for (i = 0; i < length; i++) {