[kaffe] CVS kaffe (robilad): kaffe/kaffevm/reference.c (KaffeVM_setFinalizer):

Kaffe CVS cvs-commits at kaffe.org
Sun Sep 23 05:18:55 PDT 2007


PatchSet 7560 
Date: 2007/09/23 12:15:09
Author: robilad
Branch: HEAD
Tag: (none) 
Log:
2007-09-23  Dalibor Topic  <robilad at kaffe.org>

        * kaffe/kaffevm/reference.c (KaffeVM_setFinalizer):
        Added debugging statements.

Members: 
	ChangeLog:1.5058->1.5059 
	kaffe/kaffevm/reference.c:1.10->1.11 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.5058 kaffe/ChangeLog:1.5059
--- kaffe/ChangeLog:1.5058	Sat Sep 22 22:55:22 2007
+++ kaffe/ChangeLog	Sun Sep 23 12:15:09 2007
@@ -1,5 +1,10 @@
 2007-09-23  Dalibor Topic  <robilad at kaffe.org>
 
+	* kaffe/kaffevm/reference.c (KaffeVM_setFinalizer):
+	Added debugging statements.
+
+2007-09-23  Dalibor Topic  <robilad at kaffe.org>
+
 	* kaffe/kaffevm/code.c (addLineNumbers): Fixed formatting string
 	warnings on x86_64-linux.
 
Index: kaffe/kaffe/kaffevm/reference.c
diff -u kaffe/kaffe/kaffevm/reference.c:1.10 kaffe/kaffe/kaffevm/reference.c:1.11
--- kaffe/kaffe/kaffevm/reference.c:1.10	Wed Aug  8 14:52:35 2007
+++ kaffe/kaffe/kaffevm/reference.c	Sun Sep 23 12:15:11 2007
@@ -275,12 +275,20 @@
     {
     case KGC_OBJECT_REFERENCE_FINALIZER:
       kobj->finalizer_call = referenceFinalizer;
+  DBG(REFERENCE, 
+      dprintf("Set object reference finalizer for %p (%s).\n", kobj, 
+	      CLASS_CNAME(OBJECT_CLASS(kobj))); 
+      );
       break;
     case KGC_DEFAULT_FINALIZER:
       kobj->finalizer_call = defaultObjectFinalizer;
       break;
     case KGC_REFERENCE_FINALIZER:
       kobj->finalizer_call = referenceObjectFinalizer;
+  DBG(REFERENCE, 
+      dprintf("Set reference finalizer for %p (%s).\n", kobj, 
+	      CLASS_CNAME(OBJECT_CLASS(kobj))); 
+      );
       break;
     default:
       DBG(REFERENCE,




More information about the kaffe mailing list