Mercurial > hg > graal-jvmci-8
comparison src/share/vm/code/nmethod.cpp @ 7088:97d0eae99568
guard against nmethod allocation failure in implementation of PrintMachineCodeToFile option
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Wed, 28 Nov 2012 19:18:39 +0100 |
parents | 7d815d842ee0 |
children | 60bef2672469 |
comparison
equal
deleted
inserted
replaced
7087:4c0d132dca4d | 7088:97d0eae99568 |
---|---|
630 } | 630 } |
631 if (nm != NULL) nmethod_stats.note_nmethod(nm); | 631 if (nm != NULL) nmethod_stats.note_nmethod(nm); |
632 if (PrintAssembly && nm != NULL) | 632 if (PrintAssembly && nm != NULL) |
633 Disassembler::decode(nm); | 633 Disassembler::decode(nm); |
634 | 634 |
635 if (PrintMachineCodeToFile) { | 635 if (nm != NULL && PrintMachineCodeToFile) { |
636 MachineCodePrinter::print(nm); | 636 MachineCodePrinter::print(nm); |
637 } | 637 } |
638 } | 638 } |
639 | 639 |
640 // verify nmethod | 640 // verify nmethod |