Message74555
Unsupported provider
> I doubt subclassability of RLock matters but who knows, people do code
> things.
I've recently done this to implement potential deadlock detection. I
keep a record of the sequences of acquired locks, find unique
sequences, then check for conflicts between each sequence. There's not
much overhead and it highlighted some potential deadlocks where lock A
and B were acquired AB in one route through code and BA in another
route. The algorithm is a simplified version of that used in Linux -
see http://www.mjmwired.net/kernel/Documentation/lockdep-design.txt
Hugh |
|
Date |
User |
Action |
Args |
2008-10-09 05:39:11 | hgibson50 | set | recipients:
+ hgibson50, gregory.p.smith, jcea, Rhamphoryncus, pitrou, vstinner, giampaolo.rodola, sserrano |
2008-10-09 05:39:11 | hgibson50 | set | messageid: <1223530751.2.0.596667723237.issue3001@psf.upfronthosting.co.za> |
2008-10-09 05:39:10 | hgibson50 | link | issue3001 messages |
2008-10-09 05:39:08 | hgibson50 | create | |
|