< prev index next >
src/share/vm/utilities/growableArray.hpp
Print this page
@@ -25,10 +25,11 @@
#ifndef SHARE_VM_UTILITIES_GROWABLEARRAY_HPP
#define SHARE_VM_UTILITIES_GROWABLEARRAY_HPP
#include "memory/allocation.hpp"
#include "memory/allocation.inline.hpp"
+#include "oops/array.hpp"
#include "utilities/debug.hpp"
#include "utilities/globalDefinitions.hpp"
// A growable array.
@@ -388,10 +389,16 @@
for (int i = 0; i < l->_len; i++) {
raw_at_put_grow(_len, l->_data[i], E());
}
}
+ void appendAll(const Array<E>* l) {
+ for (int i = 0; i < l->length(); i++) {
+ raw_at_put_grow(_len, l->at(i), E());
+ }
+ }
+
void sort(int f(E*,E*)) {
qsort(_data, length(), sizeof(E), (_sort_Fn)f);
}
// sort by fixed-stride sub arrays:
void sort(int f(E*,E*), int stride) {
< prev index next >