[kaffe] CVS kaffe (robilad): Made gc_block_base private

Kaffe CVS cvs-commits at kaffe.org
Sun Mar 13 05:02:04 PST 2005


PatchSet 5531 
Date: 2005/03/13 12:57:21
Author: robilad
Branch: HEAD
Tag: (none) 
Log:
Made gc_block_base private

2005-03-13  Dalibor Topic  <robilad at kaffe.org>

        * kaffe/kaffevm/kaffe-gc/gc-mem.c (KGC_BLOCKS): Added.
        (gc_block_base) Made static.

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

        * kaffe/kaffevm/kaffe-gc/gc-incremental.h (gc_block_base):
        Removed.

Members: 
	ChangeLog:1.3705->1.3706 
	kaffe/kaffevm/kaffe-gc/gc-incremental.h:1.7->1.8 
	kaffe/kaffevm/kaffe-gc/gc-mem.c:1.25->1.26 
	kaffe/kaffevm/kaffe-gc/gc-mem.h:1.12->1.13 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.3705 kaffe/ChangeLog:1.3706
--- kaffe/ChangeLog:1.3705	Sun Mar 13 11:31:35 2005
+++ kaffe/ChangeLog	Sun Mar 13 12:57:21 2005
@@ -1,5 +1,15 @@
 2005-03-13  Dalibor Topic  <robilad at kaffe.org>
 
+	* kaffe/kaffevm/kaffe-gc/gc-mem.c (KGC_BLOCKS): Added.
+	(gc_block_base) Made static.
+
+	* kaffe/kaffevm/kaffe-gc/gc-mem.h (KGC_BLOCKS): Removed.
+
+	* kaffe/kaffevm/kaffe-gc/gc-incremental.h (gc_block_base):
+	Removed.
+
+2005-03-13  Dalibor Topic  <robilad at kaffe.org>
+
 	* configure.ac: Removed ALIGNMENTOF_VOIDP check.
 
 	* include/defs.h (ALIGNMENTOF_VOIDP): Define portably.
Index: kaffe/kaffe/kaffevm/kaffe-gc/gc-incremental.h
diff -u kaffe/kaffe/kaffevm/kaffe-gc/gc-incremental.h:1.7 kaffe/kaffe/kaffevm/kaffe-gc/gc-incremental.h:1.8
--- kaffe/kaffe/kaffevm/kaffe-gc/gc-incremental.h:1.7	Mon Dec 20 01:39:21 2004
+++ kaffe/kaffe/kaffevm/kaffe-gc/gc-incremental.h	Sun Mar 13 12:57:24 2005
@@ -20,7 +20,6 @@
 #define	MAX_HEAPSIZE	(64*1024*1024)
 #define	ALLOC_HEAPSIZE	(1024*1024)
 
-extern char * gc_block_base;
 
 /* ------------------------------------------------------------------------ */
 
Index: kaffe/kaffe/kaffevm/kaffe-gc/gc-mem.c
diff -u kaffe/kaffe/kaffevm/kaffe-gc/gc-mem.c:1.25 kaffe/kaffe/kaffevm/kaffe-gc/gc-mem.c:1.26
--- kaffe/kaffe/kaffevm/kaffe-gc/gc-mem.c:1.25	Fri Mar 11 16:41:55 2005
+++ kaffe/kaffe/kaffevm/kaffe-gc/gc-mem.c	Sun Mar 13 12:57:24 2005
@@ -125,6 +125,10 @@
  */
 #define	ROUNDUPPAGESIZE(V)	(((uintp)(V) + gc_pgsize - 1) & -gc_pgsize)
 
+static char * gc_block_base = NULL;
+
+#define KGC_BLOCKS		((gc_block *) gc_block_base)
+
 /**
  * Evaluates to the first usable address in gc_block @B.
  *
@@ -671,7 +675,6 @@
  */
 #define KGC_PRIM_LIST_COUNT 20
 
-char * gc_block_base = NULL;
 static gc_block *gc_prim_freelist[KGC_PRIM_LIST_COUNT+1];
 
 #ifndef PROT_NONE
Index: kaffe/kaffe/kaffevm/kaffe-gc/gc-mem.h
diff -u kaffe/kaffe/kaffevm/kaffe-gc/gc-mem.h:1.12 kaffe/kaffe/kaffevm/kaffe-gc/gc-mem.h:1.13
--- kaffe/kaffe/kaffevm/kaffe-gc/gc-mem.h:1.12	Fri Sep  3 19:08:21 2004
+++ kaffe/kaffe/kaffevm/kaffe-gc/gc-mem.h	Sun Mar 13 12:57:24 2005
@@ -95,8 +95,6 @@
 
 /* ------------------------------------------------------------------------ */
 
-#define KGC_BLOCKS		((gc_block *) gc_block_base)
-
 /**
  * Tests whether a block is in use.
  *




More information about the kaffe mailing list