Jonathan Adams wrote: > > > - Create a C macro |#define KMEM_TMP_ALLOC()| which expands to the > > > following procedure: > > > 1. Measure stack size and current available space on stack. The first > > > 512bytes (of a 8k default stack, a 64k default stack would offer much > > > more room (this value is a tuneable, setting it to |0| will disable the > > > stack allocations)) are available to allocations via C99 constructs (if > > > this fails the size will simply be set to |0|). > > > > Are there lots of such tmp allocations in the kernel to justify such > > special-purpose allocator? Most of the allocations seem to be used for data > > structures - they are not temporary. > > And in any case, the benefits of debugging the kernel allocator has would be > lost with this.
BTW: If you set the matching tuneable to |0| the stack allocations will not be used - which means you will still be able to use the kernel allocator's debugging facilities on demand. ---- Bye, Roland -- __ . . __ (o.\ \/ /.o) [EMAIL PROTECTED] \__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer /O /==\ O\ TEL +49 641 7950090 (;O/ \/ \O;) _______________________________________________ perf-discuss mailing list perf-discuss@opensolaris.org