[kaffe] CVS kaffe (dalibor): Fixed compilation error for --with-stats

Kaffe CVS Kaffe Mailing List <kaffe@kaffe.org>
Wed Mar 17 23:36:01 2004


PatchSet 4537 
Date: 2004/03/18 07:24:16
Author: dalibor
Branch: HEAD
Tag: (none) 
Log:
Fixed compilation error for --with-stats

2004-03-17  Jim Huang <jimchyun@ccns.ncku.edu.tw>

        * kaffe/kaffevm/classPool.c:
        Fixed compilation error for --with-stats.

Members: 
	ChangeLog:1.2115->1.2116 
	kaffe/kaffevm/classPool.c:1.22->1.23 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.2115 kaffe/ChangeLog:1.2116
--- kaffe/ChangeLog:1.2115	Thu Mar 18 07:05:14 2004
+++ kaffe/ChangeLog	Thu Mar 18 07:24:16 2004
@@ -1,3 +1,8 @@
+2004-03-17  Jim Huang <jimchyun@ccns.ncku.edu.tw>
+
+	* kaffe/kaffevm/classPool.c:
+	Fixed compilation error for --with-stats.
+
 2004-03-17  Dalibor Topic <robilad@kaffe.org>
 
         * libraries/javalib/java/text/SimpleLineIterator.java,
Index: kaffe/kaffe/kaffevm/classPool.c
diff -u kaffe/kaffe/kaffevm/classPool.c:1.22 kaffe/kaffe/kaffevm/classPool.c:1.23
--- kaffe/kaffe/kaffevm/classPool.c:1.22	Mon Sep 22 15:31:24 2003
+++ kaffe/kaffe/kaffevm/classPool.c	Thu Mar 18 07:24:19 2004
@@ -571,10 +571,10 @@
 	 */
 	misc += SIZE_IFNONZERO(clazz);		/* myself */
 	if (!CLASS_IS_PRIMITIVE(clazz)) {
-		/* For primitives, dtable is -1 and methods is the
+		/* For primitives, vtable is -1 and methods is the
 		 * class of the corresponding array
 		 */
-		misc += SIZE_IFNONZERO(clazz->dtable);
+		misc += SIZE_IFNONZERO(clazz->vtable);
 		misc += SIZE_IFNONZERO(CLASS_CONSTANTS(clazz)->data);
 		misc += SIZE_IFNONZERO(CLASS_FIELDS(clazz));
 		misc += SIZE_IFNONZERO(CLASS_STATICDATA(clazz));