Mercurial > hg > truffle
comparison src/share/vm/oops/instanceKlass.cpp @ 964:75e30968ebe1
Merge
author | dcubed |
---|---|
date | Fri, 28 Aug 2009 12:32:06 -0600 |
parents | 1413494da700 9601152ccfc1 |
children | 682194ca1d8d ad6585fd4087 |
comparison
equal
deleted
inserted
replaced
920:a774e1abbe85 | 964:75e30968ebe1 |
---|---|
1083 size_t length = 0; | 1083 size_t length = 0; |
1084 // array length stored in first element, other elements offset by one | 1084 // array length stored in first element, other elements offset by one |
1085 if (indices == NULL || (length = (size_t)indices[0]) <= idnum) { | 1085 if (indices == NULL || (length = (size_t)indices[0]) <= idnum) { |
1086 size_t size = MAX2(idnum+1, (size_t)idnum_allocated_count()); | 1086 size_t size = MAX2(idnum+1, (size_t)idnum_allocated_count()); |
1087 int* new_indices = NEW_C_HEAP_ARRAY(int, size+1); | 1087 int* new_indices = NEW_C_HEAP_ARRAY(int, size+1); |
1088 new_indices[0] =(int)size; // array size held in the first element | |
1088 // Copy the existing entries, if any | 1089 // Copy the existing entries, if any |
1089 size_t i; | 1090 size_t i; |
1090 for (i = 0; i < length; i++) { | 1091 for (i = 0; i < length; i++) { |
1091 new_indices[i+1] = indices[i+1]; | 1092 new_indices[i+1] = indices[i+1]; |
1092 } | 1093 } |