Mercurial > hg > truffle
comparison src/share/vm/utilities/quickSort.hpp @ 4970:33df1aeaebbf
Merge with http://hg.openjdk.java.net/hsx/hsx24/hotspot/
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Mon, 27 Feb 2012 13:10:13 +0100 |
parents | 3c648b9ad052 |
children |
comparison
equal
deleted
inserted
replaced
4703:2cfb7fb2dce7 | 4970:33df1aeaebbf |
---|---|
128 // for unit testing | 128 // for unit testing |
129 #ifndef PRODUCT | 129 #ifndef PRODUCT |
130 static void print_array(const char* prefix, int* array, int length); | 130 static void print_array(const char* prefix, int* array, int length); |
131 static bool compare_arrays(int* actual, int* expected, int length); | 131 static bool compare_arrays(int* actual, int* expected, int length); |
132 template <class C> static bool sort_and_compare(int* arrayToSort, int* expectedResult, int length, C comparator, bool idempotent = false); | 132 template <class C> static bool sort_and_compare(int* arrayToSort, int* expectedResult, int length, C comparator, bool idempotent = false); |
133 static bool test_quick_sort(); | 133 static void test_quick_sort(); |
134 #endif | 134 #endif |
135 }; | 135 }; |
136 | 136 |
137 | 137 |
138 #endif //SHARE_VM_UTILITIES_QUICKSORT_HPP | 138 #endif //SHARE_VM_UTILITIES_QUICKSORT_HPP |