src/share/vm/utilities/growableArray.hpp
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File
*** old/src/share/vm/utilities/growableArray.hpp Mon May 19 12:43:18 2014
--- new/src/share/vm/utilities/growableArray.hpp Mon May 19 12:43:18 2014
*** 347,356 ****
--- 347,357 ----
}
}
// inserts the given element before the element at index i
void insert_before(const int idx, const E& elem) {
+ assert(0 <= idx && idx <= _len, "illegal index");
check_nesting();
if (_len == _max) grow(_len);
for (int j = _len - 1; j >= idx; j--) {
_data[j + 1] = _data[j];
}
*** 358,368 ****
--- 359,369 ----
_data[idx] = elem;
}
void appendAll(const GrowableArray<E>* l) {
for (int i = 0; i < l->_len; i++) {
! raw_at_put_grow(_len, l->_data[i], 0);
! raw_at_put_grow(_len, l->_data[i], E());
}
}
void sort(int f(E*,E*)) {
qsort(_data, length(), sizeof(E), (_sort_Fn)f);
src/share/vm/utilities/growableArray.hpp
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File