# HG changeset patch # User Tom Rodriguez # Date 1385499820 28800 # Node ID 57ea5bfec214499efec03789b3c1793e6d3c843f # Parent 85b60abfd11faf8f310c7f7803f4e183f0b3ae86# Parent bc868f83bcec413de3eef8898381e805e4288a81 Merge diff -r bc868f83bcec -r 57ea5bfec214 src/share/vm/asm/codeBuffer.cpp --- a/src/share/vm/asm/codeBuffer.cpp Tue Nov 26 13:35:52 2013 +0100 +++ b/src/share/vm/asm/codeBuffer.cpp Tue Nov 26 13:03:40 2013 -0800 @@ -1096,8 +1096,9 @@ CodeString* c = find(offset); while (c && c->offset() == offset) { stream->bol(); - stream->print(" ;; "); - stream->print_cr(c->string()); + stream->print_raw(" ;; "); + // Don't interpret as format strings since it could contain % + stream->print_raw_cr(c->string()); c = c->next_comment(); } } diff -r bc868f83bcec -r 57ea5bfec214 src/share/vm/prims/jni.cpp --- a/src/share/vm/prims/jni.cpp Tue Nov 26 13:35:52 2013 +0100 +++ b/src/share/vm/prims/jni.cpp Tue Nov 26 13:03:40 2013 -0800 @@ -5176,7 +5176,11 @@ #ifdef GRAAL // GraalCompiler needs to have been created in compileBroker.cpp GraalCompiler* graal_compiler = GraalCompiler::instance(); - graal_compiler->initialize(); + if (graal_compiler != NULL) { + graal_compiler->initialize(); + } else { + assert(!UseCompiler, "why isn't there are compiler?"); + } #endif // Tracks the time application was running before GC diff -r bc868f83bcec -r 57ea5bfec214 src/share/vm/runtime/java.cpp --- a/src/share/vm/runtime/java.cpp Tue Nov 26 13:35:52 2013 +0100 +++ b/src/share/vm/runtime/java.cpp Tue Nov 26 13:03:40 2013 -0800 @@ -462,7 +462,9 @@ static jint volatile _before_exit_status = BEFORE_EXIT_NOT_RUN; #ifdef GRAAL - GraalCompiler::instance()->exit(); + if (GraalCompiler::instance() != NULL) { + GraalCompiler::instance()->exit(); + } #endif // Note: don't use a Mutex to guard the entire before_exit(), as diff -r bc868f83bcec -r 57ea5bfec214 src/share/vm/runtime/vframeArray.cpp --- a/src/share/vm/runtime/vframeArray.cpp Tue Nov 26 13:35:52 2013 +0100 +++ b/src/share/vm/runtime/vframeArray.cpp Tue Nov 26 13:03:40 2013 -0800 @@ -251,9 +251,6 @@ case Deoptimization::Unpack_uncommon_trap: case Deoptimization::Unpack_reexecute: // redo last byte code -#ifdef GRAALVM - assert(should_reexecute(), ""); -#endif pc = Interpreter::deopt_entry(vtos, 0); use_next_mdp = false; break;