OSDN Git Service

* gnu/gcj/util/natGCInfo.cc (nomem_handler): Use oomDumpName as
authordaney <daney@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 28 Jul 2009 16:26:13 +0000 (16:26 +0000)
committerdaney <daney@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 28 Jul 2009 16:26:13 +0000 (16:26 +0000)
dump file name base.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@150166 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 3d9868e..02fc607 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 a924096..a593617 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);