[kaffe] CVS kaffe (dalibor): Removed bending of libtool memory management functions to kaffe's gc

Kaffe CVS cvs-commits at kaffe.org
Sat Apr 17 03:44:02 PDT 2004


PatchSet 4656 
Date: 2004/04/17 10:02:31
Author: dalibor
Branch: HEAD
Tag: (none) 
Log:
Removed bending of libtool memory management functions to kaffe's gc

2004-04-17  Dalibor Topic <robilad at kaffe.org>

        * kaffe/kaffevm/external.c:
        (LIBRARYINIT) Don't bend libtool memory management functions
        anymore over to kaffe's gc. The lt_dlmalloc/free/realloc
        interfaces are deprecated in libtool's CVS now.

Members: 
	ChangeLog:1.2232->1.2233 
	kaffe/kaffevm/external.c:1.55->1.56 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.2232 kaffe/ChangeLog:1.2233
--- kaffe/ChangeLog:1.2232	Fri Apr 16 17:16:22 2004
+++ kaffe/ChangeLog	Sat Apr 17 10:02:31 2004
@@ -1,3 +1,10 @@
+2004-04-17  Dalibor Topic <robilad at kaffe.org>
+
+	* kaffe/kaffevm/external.c:
+	(LIBRARYINIT) Don't bend libtool memory management functions
+	anymore over to kaffe's gc. The lt_dlmalloc/free/realloc 
+	interfaces are deprecated in libtool's CVS now.
+
 2004-04-16  Guilhem Lavaux <guilhem at kaffe.org>
 
 	* kaffe/kaffevm/jni.c, include/jni.h
Index: kaffe/kaffe/kaffevm/external.c
diff -u kaffe/kaffe/kaffevm/external.c:1.55 kaffe/kaffe/kaffevm/external.c:1.56
--- kaffe/kaffe/kaffevm/external.c:1.55	Sat Apr  3 02:57:43 2004
+++ kaffe/kaffe/kaffevm/external.c	Sat Apr 17 10:02:33 2004
@@ -63,24 +63,7 @@
 #endif
 
 #ifndef LIBRARYINIT
-static inline lt_ptr_t kdlmalloc(size_t len) { 
-	void *ptr = gc_malloc(len, GC_ALLOC_NATIVELIB);
-	addToCounter(&ltmem, "vmmem-libltdl", 1, GCSIZEOF(ptr));
-	return (ptr);
-}
-static inline lt_ptr_t kdlrealloc(lt_ptr_t ptr0, size_t len) {
-	jlong len0;
-	void *ptr;
-	len0 = (jlong)GCSIZEOF(ptr0);
-	ptr = gc_realloc(ptr0, len, GC_ALLOC_NATIVELIB);
-	addToCounter(&ltmem, "vmmem-libltdl", 1, ((jlong)GCSIZEOF(ptr))-len0);
-	return (ptr);
-}
-static inline void kdlfree(lt_ptr_t ptr) { 
-	addToCounter(&ltmem, "vmmem-libltdl", 1, -((jlong)GCSIZEOF(ptr)));
-	KFREE(ptr); 
-}
-#define LIBRARYINIT() ((lt_dlmalloc=kdlmalloc),(lt_dlrealloc=kdlrealloc),(lt_dlfree=kdlfree),lt_dlinit())
+#define LIBRARYINIT() (lt_dlinit())
 #endif
 
 #ifndef LIBRARYSUFFIX




More information about the kaffe mailing list