lwkt_msgport.c

Peter Kadau peter.kadau at tuebingen.mpg.de
Wed Dec 31 15:57:04 PST 2003


Hi !

functions does not add very much overhead as its just a value
being incremented by one.
*Taking the teacher's hat*
By 32, not one.
*Dropping the teacher's hat*
#ifdef INVARIANTS
    if (td->td_pri < 0)
        crit_panic();
#endif
As you see here it will overflow at an value of > (mumble)
(munmble could be something like (mumble some power of two minus one))
for an i386 int (quite a way to go I'll admit).
If one were to add a simple print statement into crit_enter()
to print the current value of the nesting depth, you'll find we
are several hundreds deep already.
Fortunately not deeper... ;-)

Cheers and still a
Happy New Year
Peter
--
<peter.kadau at xxxxxxxxxxxxxxxx>
Campus der Max-Planck-Institute Tübingen
Netzwerk- und Systemadministration
Tel: +49 7071 601 598
Fax: +49 7071 601 616





More information about the Submit mailing list