aboutsummaryrefslogtreecommitdiff
path: root/mmalloc/TODO
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>1992-04-17 03:01:54 +0000
committerFred Fish <fnf@specifix.com>1992-04-17 03:01:54 +0000
commit13b33d2b0a53a588bbec6e9ab9946d40947a84b1 (patch)
treea9bba09ddaf1f4132b14bbe46fb42865aad1cdc5 /mmalloc/TODO
parent2d6d969c616d286076df1778db0d06a64f11251a (diff)
downloadgdb-13b33d2b0a53a588bbec6e9ab9946d40947a84b1.zip
gdb-13b33d2b0a53a588bbec6e9ab9946d40947a84b1.tar.gz
gdb-13b33d2b0a53a588bbec6e9ab9946d40947a84b1.tar.bz2
* TODO: New file.
* attach.c, mcalloc.c, mfree.c, mmalloc.c, mmalloc.h, mmap-sup.c, mmcheck.c, mtrace.c, mrealloc.c, mvalloc.c, sbrk-sup.c: Lint.
Diffstat (limited to 'mmalloc/TODO')
-rw-r--r--mmalloc/TODO15
1 files changed, 15 insertions, 0 deletions
diff --git a/mmalloc/TODO b/mmalloc/TODO
new file mode 100644
index 0000000..46bccc2
--- /dev/null
+++ b/mmalloc/TODO
@@ -0,0 +1,15 @@
+(1) Make implementation changes necessary to allow multiple processes
+ to use the mmalloc managed region simultaneously. This requires,
+ at the minimum, some sort of cooperative locking that ensures that
+ only one process at a time is changing any of the mmalloc managed
+ data structures (its ok for the mmalloc managed data regions to be
+ changed at any time since we don't care about their contents).
+
+(2) In order to support multiple processes using the mmalloc managed
+ region, the malloc descriptor needs to be broken into two parts,
+ one part which is specific to the given process and is maintained
+ separately on a per process basis, and another part which is common
+ to all processes. As an example, the file descriptor is specific
+ to a given process, as are the morecore and abortfunc pointers.
+ However magic[], the version number, the flags field, etc are
+ common to all processes.