# HG changeset patch # User Gilles Duboscq # Date 1366125442 -7200 # Node ID f2aebc22372a6b0e3d29edd2ec9d7c70f9229d65 # Parent 43223d3f5dcd07288484ef6bc43aa17002f296a0 Fix hotspot optimized build diff -r 43223d3f5dcd -r f2aebc22372a src/share/vm/classfile/classFileParser.cpp --- a/src/share/vm/classfile/classFileParser.cpp Tue Apr 16 17:39:46 2013 +0200 +++ b/src/share/vm/classfile/classFileParser.cpp Tue Apr 16 17:17:22 2013 +0200 @@ -3041,7 +3041,7 @@ } -#ifndef PRODUCT +#ifdef ASSERT static void parseAndPrintGenericSignatures( instanceKlassHandle this_klass, TRAPS) { assert(ParseAllGenericSignatures == true, "Shouldn't call otherwise"); @@ -3066,7 +3066,7 @@ } } } -#endif // ndef PRODUCT +#endif // ASSERT instanceKlassHandle ClassFileParser::parse_super_class(int super_class_index, diff -r 43223d3f5dcd -r f2aebc22372a src/share/vm/classfile/vmSymbols.cpp --- a/src/share/vm/classfile/vmSymbols.cpp Tue Apr 16 17:39:46 2013 +0200 +++ b/src/share/vm/classfile/vmSymbols.cpp Tue Apr 16 17:17:22 2013 +0200 @@ -49,7 +49,7 @@ } } -#ifndef PRODUCT +#ifdef ASSERT #define VM_SYMBOL_ENUM_NAME_BODY(name, string) #name "\0" static const char* vm_symbol_enum_names = VM_SYMBOLS_DO(VM_SYMBOL_ENUM_NAME_BODY, VM_ALIAS_IGNORE) @@ -64,7 +64,7 @@ } return string; } -#endif //PRODUCT +#endif //ASSERT // Put all the VM symbol strings in one place. // Makes for a more compact libjvm. diff -r 43223d3f5dcd -r f2aebc22372a src/share/vm/opto/runtime.cpp --- a/src/share/vm/opto/runtime.cpp Tue Apr 16 17:39:46 2013 +0200 +++ b/src/share/vm/opto/runtime.cpp Tue Apr 16 17:17:22 2013 +0200 @@ -126,14 +126,12 @@ // This should be called in an assertion at the start of OptoRuntime routines // which are entered from compiled code (all of them) -#ifndef PRODUCT +#ifdef ASSERT static bool check_compiled_frame(JavaThread* thread) { assert(thread->last_frame().is_runtime_frame(), "cannot call runtime directly from compiled code"); -#ifdef ASSERT RegisterMap map(thread, false); frame caller = thread->last_frame().sender(&map); assert(caller.is_compiled_frame(), "not being called from compiled like code"); -#endif /* ASSERT */ return true; } #endif diff -r 43223d3f5dcd -r f2aebc22372a src/share/vm/utilities/quickSort.cpp --- a/src/share/vm/utilities/quickSort.cpp Tue Apr 16 17:39:46 2013 +0200 +++ b/src/share/vm/utilities/quickSort.cpp Tue Apr 16 17:17:22 2013 +0200 @@ -32,6 +32,7 @@ #include "utilities/quickSort.hpp" #include +#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;