summaryrefslogtreecommitdiff
path: root/libjava
diff options
context:
space:
mode:
authordaney <daney@138bc75d-0d04-0410-961f-82ee72b054a4>2009-07-28 16:26:13 +0000
committerdaney <daney@138bc75d-0d04-0410-961f-82ee72b054a4>2009-07-28 16:26:13 +0000
commit3e8132224ecc0c9d421b79f489cc056093aeeb4f (patch)
treebc292fa4b0b950a768a9ee558874d25636b10854 /libjava
parent7a8903e38e10230655967d79eb297f8d36720594 (diff)
downloadgcc-3e8132224ecc0c9d421b79f489cc056093aeeb4f.tar.gz
* gnu/gcj/util/natGCInfo.cc (nomem_handler): Use oomDumpName as
dump file name base. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@150166 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava')
-rw-r--r--libjava/ChangeLog5
-rw-r--r--libjava/gnu/gcj/util/natGCInfo.cc2
2 files changed, 6 insertions, 1 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog
index 3d9868ef8e6..02fc607e328 100644
--- a/libjava/ChangeLog
+++ b/libjava/ChangeLog
@@ -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
diff --git a/libjava/gnu/gcj/util/natGCInfo.cc b/libjava/gnu/gcj/util/natGCInfo.cc
index a9240961f8b..a5936174da7 100644
--- a/libjava/gnu/gcj/util/natGCInfo.cc
+++ b/libjava/gnu/gcj/util/natGCInfo.cc
@@ -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);