hotspot/src/share/vm/compiler/compileBroker.cpp
changeset 25503 9f471b837330
parent 25477 7dad9f95fd31
child 25647 949674dcd7c7
--- a/hotspot/src/share/vm/compiler/compileBroker.cpp	Fri Jul 11 09:14:21 2014 -0700
+++ b/hotspot/src/share/vm/compiler/compileBroker.cpp	Mon Jul 14 12:43:50 2014 +0400
@@ -2123,6 +2123,7 @@
   ResourceMark rm;
   char* method_name = method->name()->as_C_string();
   strncpy(_last_method_compiled, method_name, CompileBroker::name_buffer_length);
+  _last_method_compiled[CompileBroker::name_buffer_length - 1] = '\0'; // ensure null terminated
   char current_method[CompilerCounters::cmname_buffer_length];
   size_t maxLen = CompilerCounters::cmname_buffer_length;