home *** CD-ROM | disk | FTP | other *** search
-
-
- ickalloc - Intertask Failure-Checking Malloc
-
-
- We are fairly clever about memory allocation for intertask messages.
-
- We hardly have to do anything tricky to do this, but we have the one
- tricky thing that text replies in reply messages are allocated by
- the guy doing the reply but deleted by the guy receiving it.
-
- Thus, this needs to not use the normal ckalloc and ckfree, because
- when a task exits, all the memory it allocated with ckalloc is freed,
- and that can include memory owned by the other task.
-
- Anyway, if you look in ports.c you will see where intertask_ckalloc
- and intertask_ckfree are called.
-
- Note: Manx alloc and free are brain-damaged and need to be replaced.
- They can incur a lot of overhead. Also, versions probably need to
- be created that bitch when you free something you didn't allocate.
- As it is now, the Manx lib routines just blow off the request.
-
-
- #define MEMORY_MAGIC 0xcadbabe
-
- #include <functions.h>
- #include <exec/memory.h>
-
- struct mementry {
- long length;
- long memory_magic;
- };
-
- void *intertask_ckalloc(size_t length)
- {
- }
-
- void intertask_ckfree(void *where)
- {
- }
-
-