Merge
authordcubed
Fri, 28 Aug 2009 15:03:15 -0700
changeset 3812 a1c4c8c4da84
parent 3811 e8139278d5d7 (diff)
parent 3809 a68ba546e735 (current diff)
child 3813 f8e33e912023
Merge
--- a/hotspot/src/share/vm/oops/instanceKlass.cpp	Fri Aug 28 08:54:28 2009 -0700
+++ b/hotspot/src/share/vm/oops/instanceKlass.cpp	Fri Aug 28 15:03:15 2009 -0700
@@ -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++) {