# HG changeset patch # User Doug Simon # Date 1354126719 -3600 # Node ID 97d0eae99568c1ff8544ec713f0501d53b5c0932 # Parent 4c0d132dca4d6a52bf2500f7bf1bf63322399b7e guard against nmethod allocation failure in implementation of PrintMachineCodeToFile option diff -r 4c0d132dca4d -r 97d0eae99568 src/share/vm/code/nmethod.cpp --- a/src/share/vm/code/nmethod.cpp Wed Nov 28 18:48:17 2012 +0100 +++ b/src/share/vm/code/nmethod.cpp Wed Nov 28 19:18:39 2012 +0100 @@ -632,7 +632,7 @@ if (PrintAssembly && nm != NULL) Disassembler::decode(nm); - if (PrintMachineCodeToFile) { + if (nm != NULL && PrintMachineCodeToFile) { MachineCodePrinter::print(nm); } }