--- old/src/hotspot/cpu/x86/macroAssembler_x86.cpp 2018-02-13 11:09:20.284319793 +0100 +++ new/src/hotspot/cpu/x86/macroAssembler_x86.cpp 2018-02-13 11:09:20.096319981 +0100 @@ -3660,9 +3660,14 @@ } void MacroAssembler::unimplemented(const char* what) { - char* b = new char[1024]; - jio_snprintf(b, 1024, "unimplemented: %s", what); - stop(b); + const char* buf = NULL; + { + ResourceMark rm; + stringStream ss; + ss.print("unimplemented: %s", what); + buf = code_string(ss.as_string()); + } + stop(buf); } #ifdef _LP64