Re: Memory manager

2002-06-26 Thread Andi Gutmans
At 11:34 AM 6/25/2002 -0700, Greg Stein wrote:
On Tue, Jun 25, 2002 at 09:07:22PM +0300, Andi Gutmans wrote:
 I won't cc: the apr dev group because it'll just clutter their list :)
Heh. Well, I trimmed out some, and am taking one point to the list.
 At 03:09 AM 6/25/2002 -0700, Greg Stein wrote:
...
 Sander mentioned something about reaps. I remember that coming up a 
while
 back, but am not super clear on it. IIRC, it was a synthesis of pools and
 being able to individually free items. Probably something right along the
 lines of what you're looking for.

 If you guys feel this works better for you then great!

My point is that (IIRC) reaps are essentially what you are building. There
is some actual academic research on their use. You might find that useful
for your own work.
Further, that we would want to look at your work and compare that with the
reap information, and bring that into APR.
The post about reaps is here:
http://www.apachelabs.org/apr-mbox/200203.mbox/[EMAIL PROTECTED]
I read the reaps article. I didn't quite understand how they actually code 
their heaps and therefore it's hard to understand how fast it really is.
My approach is actually similar to theirs (pools with free) and they even 
mention this kind of approach. I created pools which are internally managed 
similar to Doug Lea style.
Do these guys make their code available someplace?

Andi


[PATCH] Regarding semun definition in proc_mutex.h

2002-06-26 Thread MATHIHALLI,MADHUSUDAN (HP-Cupertino,ex1)
On platforms where the semun union is not available, the APR defines the
semun structure - but I believe the first parameter should be a int val
and not long val. I verified it on HP-UX and Linux (both 32-bit and 64-bit
systems).

BTW, we were able to get Apache (2.0.39) to work on the HP-UX / Itanium
architecture without any other problems. Great work !!.

-Madhu

Index: proc_mutex.h
===
RCS file: /home/cvspublic/apr/include/arch/unix/proc_mutex.h,v
retrieving revision 1.8
diff -u -r1.8 proc_mutex.h
--- proc_mutex.h7 Jun 2002 14:04:34 -   1.8
+++ proc_mutex.h26 Jun 2002 16:29:52 -
@@ -142,7 +142,7 @@
 
 #if !APR_HAVE_UNION_SEMUN  defined(APR_HAS_SYSVSEM_SERIALIZE)
 union semun {
-long val;
+int val;
 struct semid_ds *buf;
 unsigned short *array;
 };