apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Stoddard" <b...@wstoddard.com>
Subject Re: [PATCH/CONTRIB] Shared Mem Hash Table
Date Thu, 05 Jul 2001 13:07:26 GMT
> This implements a hash table using shared memory.
> Limitations:
>     * doesn't have a freelist, so deletes aren't reclaimed
>     * and can't expand it's size (dont know how to implement this with  current shared
memory system)

To the best of my knowledge, you cannot expand a shared memory segment (after fork) and
ensure that all processes use the exact same addresses to access that memory.  If one of
your processes increases the size of the hash table, you have forever screwed up the hash
table for all the other processes because you now have addresses in the table that may
point to completely different storage in all the other processes.

Bill


Mime
View raw message