[kaffe] CVS kaffe (dalibor): Small cleanup in gc-mem: Moved KGC_OBJECT_SIZE out of header

Kaffe CVS cvs-commits at kaffe.org
Wed Sep 1 03:23:59 PDT 2004


PatchSet 5133 
Date: 2004/09/01 10:20:15
Author: dalibor
Branch: HEAD
Tag: (none) 
Log:
Small cleanup in gc-mem: Moved KGC_OBJECT_SIZE out of header

2004-09-01  Dalibor Topic  <robilad at kaffe.org>

        * kaffe/kaffevm/kaffe-gc/gc-mem.h (KGC_OBJECT_SIZE):
        Removed.

        * kaffe/kaffevm/kaffe-gc/gc-mem.c (KGC_OBJECT_SIZE):
        Moved over here.

Members: 
	ChangeLog:1.2689->1.2690 
	kaffe/kaffevm/kaffe-gc/gc-mem.c:1.7->1.8 
	kaffe/kaffevm/kaffe-gc/gc-mem.h:1.5->1.6 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.2689 kaffe/ChangeLog:1.2690
--- kaffe/ChangeLog:1.2689	Wed Sep  1 10:02:39 2004
+++ kaffe/ChangeLog	Wed Sep  1 10:20:15 2004
@@ -1,5 +1,13 @@
 2004-09-01  Dalibor Topic  <robilad at kaffe.org>
 
+	* kaffe/kaffevm/kaffe-gc/gc-mem.h (KGC_OBJECT_SIZE): 
+	Removed.
+	
+	* kaffe/kaffevm/kaffe-gc/gc-mem.c (KGC_OBJECT_SIZE): 
+	Moved over here.
+
+2004-09-01  Dalibor Topic  <robilad at kaffe.org>
+
 	* kaffe/kaffevm/kaffe-gc/gc-mem.h: 
 	(ROUNDUPPAGESIZE, GCBLOCK2BASE, gc_pgsize)
 	Removed.
Index: kaffe/kaffe/kaffevm/kaffe-gc/gc-mem.c
diff -u kaffe/kaffe/kaffevm/kaffe-gc/gc-mem.c:1.7 kaffe/kaffe/kaffevm/kaffe-gc/gc-mem.c:1.8
--- kaffe/kaffe/kaffevm/kaffe-gc/gc-mem.c:1.7	Wed Sep  1 10:02:42 2004
+++ kaffe/kaffe/kaffevm/kaffe-gc/gc-mem.c	Wed Sep  1 10:20:15 2004
@@ -133,6 +133,12 @@
 #define GCBLOCK2BASE(B)		(((char *)gc_heap_base) \
 					 + gc_pgsize * ((B) - KGC_BLOCKS))
 
+/**
+ * Evaluates to the size of the object that contains address @M.
+ *
+ */
+#define	KGC_OBJECT_SIZE(M)	GCMEM2BLOCK(M)->size
+
 #if !(defined(NDEBUG) || !defined(KAFFE_VMDEBUG))
 /* Magic constant used to mark blocks under gc's management */
 static const uint32 gc_magic = 0xD0DECADE;
Index: kaffe/kaffe/kaffevm/kaffe-gc/gc-mem.h
diff -u kaffe/kaffe/kaffevm/kaffe-gc/gc-mem.h:1.5 kaffe/kaffe/kaffevm/kaffe-gc/gc-mem.h:1.6
--- kaffe/kaffe/kaffevm/kaffe-gc/gc-mem.h:1.5	Wed Sep  1 10:02:42 2004
+++ kaffe/kaffe/kaffevm/kaffe-gc/gc-mem.h	Wed Sep  1 10:20:15 2004
@@ -71,12 +71,6 @@
 extern void*	gc_heap_grow(size_t);
 
 /**
- * Evaluates to the size of the object that contains address @M.
- *
- */
-#define	KGC_OBJECT_SIZE(M)	GCMEM2BLOCK(M)->size
-
-/**
  * One block of the heap managed by kaffe's gc.
  *
  * It is basically one page of objects that are of the same size. 




More information about the kaffe mailing list