[kaffe] CVS kaffe (robilad): Fixed crash with -verbosemem

Kaffe CVS cvs-commits at kaffe.org
Fri Oct 29 15:46:27 PDT 2004


PatchSet 5383 
Date: 2004/10/29 22:42:37
Author: robilad
Branch: HEAD
Tag: (none) 
Log:
Fixed crash with -verbosemem

2004-10-29  Dalibor Topic  <robilad at kaffe.org>

        * kaffe/kaffevm/kaffe-gc/gc-incremental.c
        (objectStatsPrint) Fixed crash.

Members: 
	ChangeLog:1.2935->1.2936 
	kaffe/kaffevm/kaffe-gc/gc-incremental.c:1.11->1.12 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.2935 kaffe/ChangeLog:1.2936
--- kaffe/ChangeLog:1.2935	Fri Oct 29 21:36:53 2004
+++ kaffe/ChangeLog	Fri Oct 29 22:42:37 2004
@@ -1,4 +1,9 @@
-2004-10-28  Dalibor Topic  <robilad at kaffe.org>
+2004-10-29  Dalibor Topic  <robilad at kaffe.org>
+
+	* kaffe/kaffevm/kaffe-gc/gc-incremental.c
+	(objectStatsPrint) Fixed crash.
+
+2004-10-29  Dalibor Topic  <robilad at kaffe.org>
 
 	* libraries/clib/awt/classpath-gtk/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c:
 	Resynced with GNU Classpath.
Index: kaffe/kaffe/kaffevm/kaffe-gc/gc-incremental.c
diff -u kaffe/kaffe/kaffevm/kaffe-gc/gc-incremental.c:1.11 kaffe/kaffe/kaffevm/kaffe-gc/gc-incremental.c:1.12
--- kaffe/kaffe/kaffevm/kaffe-gc/gc-incremental.c:1.11	Mon Oct 25 14:26:30 2004
+++ kaffe/kaffe/kaffevm/kaffe-gc/gc-incremental.c	Fri Oct 29 22:42:39 2004
@@ -1341,7 +1341,7 @@
 	dprintf("Memory statistics:\n");
 	dprintf("------------------\n");
 
-	while (gcFunctions[cnt].description != NULL) {
+	while (cnt < KGC_ALLOC_MAX_INDEX) {
 		dprintf("%14.14s: Nr %6d  Mem %6dK",
 			gcFunctions[cnt].description, 
 			gcFunctions[cnt].nr, 




More information about the kaffe mailing list