]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
natGCInfo.cc (nomem_handler): Use oomDumpName as dump file name base.
authorDavid Daney <ddaney@caviumnetworks.com>
Tue, 28 Jul 2009 16:26:13 +0000 (16:26 +0000)
committerDavid Daney <daney@gcc.gnu.org>
Tue, 28 Jul 2009 16:26:13 +0000 (16:26 +0000)
* gnu/gcj/util/natGCInfo.cc (nomem_handler): Use oomDumpName as
dump file name base.

From-SVN: r150166

libjava/ChangeLog
libjava/gnu/gcj/util/natGCInfo.cc

index 3d9868ef8e656200064ae9eab527e3b56cc33584..02fc607e328df45638208e5d51a7c144078921dd 100644 (file)
@@ -1,3 +1,8 @@
+2009-07-28  David Daney  <ddaney@caviumnetworks.com>
+
+       * gnu/gcj/util/natGCInfo.cc (nomem_handler): Use oomDumpName as
+       dump file name base.
+
 2009-07-27  Andrew John Hughes  <ahughes@redhat.com>
 
        PR libgcj/40616
index a9240961f8b01d7d7502212d5f6298b509c7b3e4..a5936174da7fe345f17ee6471b022984924d8f40 100644 (file)
@@ -407,7 +407,7 @@ nomem_handler(size_t size)
   if (oomDumpName)
     {
       char temp[strlen(oomDumpName) + 20];
-      sprintf(temp, "%s%03d", temp, GC_dump_count++);
+      sprintf(temp, "%s%03d", oomDumpName, GC_dump_count++);
       printf("nomem_handler(%zd) called\n", size);
       gc_ok--;
       GC_enumerator x(temp);