1.1 --- a/src/share/vm/opto/compile.cpp Mon Mar 14 12:35:48 2016 +0300 1.2 +++ b/src/share/vm/opto/compile.cpp Thu Apr 21 16:19:33 2016 +0300 1.3 @@ -608,6 +608,10 @@ 1.4 n->as_MachBranch()->label_set(&fakeL, 0); 1.5 } 1.6 n->emit(buf, this->regalloc()); 1.7 + 1.8 + // Emitting into the scratch buffer should not fail 1.9 + assert (!failing(), err_msg_res("Must not have pending failure. Reason is: %s", failure_reason())); 1.10 + 1.11 if (is_branch) // Restore label. 1.12 n->as_MachBranch()->label_set(saveL, save_bnum); 1.13