[kaffe] CVS kaffe (robilad): kaffe/kaffevm/kaffe-gc/gc-refs.c (KaffeGC_addRef, KaffeGC_rmRef,

Kaffe CVS cvs-commits at kaffe.org
Sun Sep 23 12:00:04 PDT 2007


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

        * kaffe/kaffevm/kaffe-gc/gc-refs.c (KaffeGC_addRef, KaffeGC_rmRef,
        KaffeGC_addWeakRef, KaffeGC_rmWeakRef, KaffeGC_clearWeakRef):
        Added debugging statements.

Members: 
	ChangeLog:1.5059->1.5060 
	kaffe/kaffevm/kaffe-gc/gc-refs.c:1.17->1.18 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.5059 kaffe/ChangeLog:1.5060
--- kaffe/ChangeLog:1.5059	Sun Sep 23 12:15:09 2007
+++ kaffe/ChangeLog	Sun Sep 23 18:58:23 2007
@@ -1,5 +1,11 @@
 2007-09-23  Dalibor Topic  <robilad at kaffe.org>
 
+	* kaffe/kaffevm/kaffe-gc/gc-refs.c (KaffeGC_addRef, KaffeGC_rmRef,
+	KaffeGC_addWeakRef, KaffeGC_rmWeakRef, KaffeGC_clearWeakRef): 
+	Added debugging statements.
+
+2007-09-23  Dalibor Topic  <robilad at kaffe.org>
+
 	* kaffe/kaffevm/reference.c (KaffeVM_setFinalizer):
 	Added debugging statements.
 
Index: kaffe/kaffe/kaffevm/kaffe-gc/gc-refs.c
diff -u kaffe/kaffe/kaffevm/kaffe-gc/gc-refs.c:1.17 kaffe/kaffe/kaffevm/kaffe-gc/gc-refs.c:1.18
--- kaffe/kaffe/kaffevm/kaffe-gc/gc-refs.c:1.17	Wed Aug  8 14:52:35 2007
+++ kaffe/kaffe/kaffevm/kaffe-gc/gc-refs.c	Sun Sep 23 18:58:24 2007
@@ -70,6 +70,9 @@
   uint32 idx;
   strongRefObject* obj;
 
+  DBG(REFERENCE, dprintf("Adding persistent reference for object %p\n",
+                 mem); );
+
   idx = REFOBJHASH(mem);
   for (obj = strongRefObjects.hash[idx]; obj != 0; obj = obj->next) {
     /* Found it - just increase reference */
@@ -105,6 +108,9 @@
   strongRefObject** objp;
   strongRefObject* obj;
 
+  DBG(REFERENCE, dprintf("Removing persistent reference for object %p\n",
+                 mem); );
+
   idx = REFOBJHASH(mem);
   lockStaticMutex(&strongRefLock);
   for (objp = &strongRefObjects.hash[idx]; *objp != 0; objp = &obj->next) {
@@ -226,6 +232,9 @@
   weakRefObject* obj, *obj2;
   int idx;
 
+  DBG(REFERENCE, dprintf("Adding weak reference for object %p\n",
+                 mem); );
+
   lockStaticMutex(&weakRefLock);
   obj = findWeakRefObject(mem);
   if (obj != NULL)
@@ -284,6 +293,10 @@
   weakRefObject* obj;
   unsigned int i;
 
+
+  DBG(REFERENCE, dprintf("Removing weak reference for object %p \n",
+                 mem); );
+
   idx = REFOBJHASH(mem);
 
   lockStaticMutex(&weakRefLock);
@@ -464,6 +477,9 @@
   weakRefObject** objp;
   weakRefObject* obj;
   unsigned int i;
+
+  DBG(REFERENCE, dprintf("Clearing all weak references for object %p\n",
+                 mem); );
 
   idx = REFOBJHASH(mem);
 




More information about the kaffe mailing list