From: Archie Cobbs (archie@whistle.com)
Date: Sat Dec 12 1998 - 00:43:17 EST
Hi,
Correct me if I'm wrong, but I'd like to get rid of the gc_malloc_fixed()
and gc_free_fixed() macros, replacing all their uses with KMALLOC()
and KFREE() (ie, jmalloc() and jfree()) for consistency. This would
do the exact same thing, correct?
Also, I want to get rid of the #ifdef KAFFEH bogosity by adding a
new and trivial "fake threads" C file to the kaffeh sources which
defines struct GarbageCollectorInterface and struct SystemCallInterface
instances that simply call the corresponding functions directly.
The build of kaffeh includes files like jar.c from kaffe/kaffevm.
Since these files all go through the macros (KMALLOC, KREAD, etc)
which in turn go through the above structures. With these changes
these files won't need to have any #ifdef KAFFEH crud in them.
Any objections?
Thanks,
-Archie
PS. The choice of KMALLOC, KREAD, KWRITE, etc as macro names is
what I'm using now. However, it's easy enough to change these with
a sed script. So we can still decide K_MALLOC etc. is better or
whatever -- not trying to ram my particular macro names down
anybody's throat. My main request is that they be upper case.
___________________________________________________________________________
Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com
This archive was generated by hypermail 2b29 : Sat Sep 23 2000 - 19:57:12 EDT