--- old/src/share/vm/c1/c1_Compilation.hpp 2017-06-07 12:20:35.155997569 +0200 +++ new/src/share/vm/c1/c1_Compilation.hpp 2017-06-07 12:20:34.991997575 +0200 @@ -51,6 +51,7 @@ class LIR_OprDesc; class C1_MacroAssembler; class CFGPrinter; +class CFGPrinterOutput; typedef LIR_OprDesc* LIR_Opr; typedef GrowableArray BasicTypeArray; @@ -113,6 +114,7 @@ Instruction* _current_instruction; // the instruction currently being processed #ifndef PRODUCT Instruction* _last_instruction_printed; // the last instruction printed during traversal + CFGPrinterOutput* _cfg_printer_output; #endif // PRODUCT public: @@ -186,6 +188,10 @@ #ifndef PRODUCT void maybe_print_current_instruction(); + CFGPrinterOutput* cfg_printer_output() { + guarantee(_cfg_printer_output != NULL, "CFG printer output not initialized"); + return _cfg_printer_output; + } #endif // PRODUCT // error handling