From 2cf7e0f0db3f1a36d39a2f121d84ac422d46cea7 Mon Sep 17 00:00:00 2001 From: David Daney Date: Tue, 28 Jul 2009 16:26:13 +0000 Subject: [PATCH] natGCInfo.cc (nomem_handler): Use oomDumpName as dump file name base. * gnu/gcj/util/natGCInfo.cc (nomem_handler): Use oomDumpName as dump file name base. From-SVN: r150166 --- libjava/ChangeLog | 5 +++++ libjava/gnu/gcj/util/natGCInfo.cc | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 3d9868ef8e65..02fc607e328d 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,8 @@ +2009-07-28 David Daney + + * gnu/gcj/util/natGCInfo.cc (nomem_handler): Use oomDumpName as + dump file name base. + 2009-07-27 Andrew John Hughes PR libgcj/40616 diff --git a/libjava/gnu/gcj/util/natGCInfo.cc b/libjava/gnu/gcj/util/natGCInfo.cc index a9240961f8b0..a5936174da7f 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);