On Tue, 2 May 2000, Tom Lane wrote:
> Karel Zak <zakkr@zf.jcu.cz> writes:
> > The chunk header must be relevant and same for all allocation methods and
> > must be independent on AllocSel (aset.c) code. Now, it is not. Am I right?
>
> Right. Actually it would work to have additional data before the
> standard link-to-context-plus-chunk-size fields, if a particular method
> really needed more per-chunk data. But I doubt we'd ever need that.
The chunk:
+--------------------+----------------------+-------------------+ | depend-header | standard-header |
data.............| +--------------------+----------------------+-------------------+ ^ ^
^ | | | | | pointer to chunk |
| | begin of standard chunk header |particular method header, begin of
thisheader is unknown for common routines.
IMHO in standard chunk header not must be chunk size. If something needs
chunk size it cat use depend-header.
It will very nice :-)
Karel