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
This commit is contained in:
David Daney 2009-07-28 16:26:13 +00:00 committed by David Daney
parent 394a5b34b1
commit 2cf7e0f0db
2 changed files with 6 additions and 1 deletions

View 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

View 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);