Enabling debug without profiler

Pavel Roskin pavel_roskin at geocities.com
Fri Feb 11 07:43:10 PST 2000


Hello!

This patch makes it possible to use --enable-debug on platforms without
profiler support.

ChangeLog:
	kaffe/kaffevm/classPool.c: always compile walkClassPool() if
	DEBUG is defined

After this patch running
java -vmdebug GCSTAT at.dms.kjc.Main *.java
in test/awt/WidgetsDemo really produces some statistics on LinuxPPC
(i.e. walkClassPool() compiles and doesn't crash)

By the way, I can run Kaffe on RPX/Lite embedded boards with Motorola 850
processors!

Pavel Roskin

=== cut here ===
Index: kaffe/kaffevm/classPool.c
===================================================================
RCS file: /cvs/kaffe/kaffe/kaffe/kaffevm/classPool.c,v
retrieving revision 1.8
diff -u -r1.8 classPool.c
--- kaffe/kaffevm/classPool.c	2000/01/24 22:25:43	1.8
+++ kaffe/kaffevm/classPool.c	2000/02/11 15:12:36
@@ -263,7 +263,7 @@
 }
 
 
-#if defined(KAFFE_STATS) || defined(KAFFE_PROFILER)
+#if defined(KAFFE_STATS) || defined(KAFFE_PROFILER) || defined(DEBUG)
 /**
  * Walk the class pool and invoke walker() for each classes
  */
=== cut here ===



More information about the kaffe mailing list