--- old/src/hotspot/cpu/aarch64/macroAssembler_aarch64.cpp 2018-02-13 11:09:19.484320594 +0100 +++ new/src/hotspot/cpu/aarch64/macroAssembler_aarch64.cpp 2018-02-13 11:09:19.296320782 +0100 @@ -2056,9 +2056,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); } // If a constant does not fit in an immediate field, generate some