[gclist] Re: finding object prefix from infix pointer
Pekka P. Pirinen
pekka@harlequin.co.uk
Fri, 9 Jul 1999 21:03:36 +0100
Neat hacks.
> q_rounded = q + offset_from_index(remainder); // e.g. remainder << 8
That should be remainder << 3, for consistency.
> quotient = (i * fraction[i]) >> 20;
YM fraction[s].
> to get (relatively) fast multithreaded access to your lists [...]
> use one heap (set of sized pages) per thread,
Or just one set of free lists per thread, the pages can be shared.
--
Pekka P. Pirinen
Adaptive Memory Management team
Harlequin Group plc (or whatever we'll be tomorrow)