Mercurial > hg > graal-compiler
diff src/share/vm/utilities/quickSort.cpp @ 10274:e76dd894b984
8012292: optimized build with GCC broken
Summary: Some #ifndef PRODUCT should be #ifdef ASSERT
Reviewed-by: kvn, twisti
Contributed-by: gdub <duboscq@ssw.jku.at>
author | roland |
---|---|
date | Wed, 24 Apr 2013 14:26:09 +0200 |
parents | 5a9fa2ba85f0 |
children | e484fe2abebd |
line wrap: on
line diff
--- a/src/share/vm/utilities/quickSort.cpp Fri May 03 09:32:50 2013 +0200 +++ b/src/share/vm/utilities/quickSort.cpp Wed Apr 24 14:26:09 2013 +0200 @@ -32,6 +32,7 @@ #include "utilities/quickSort.hpp" #include <stdlib.h> +#ifdef ASSERT static int test_comparator(int a, int b) { if (a == b) { return 0; @@ -41,6 +42,7 @@ } return 1; } +#endif // ASSERT static int test_even_odd_comparator(int a, int b) { bool a_is_odd = (a % 2) == 1;