[haiku-commits] Re: r33953 - in haiku/trunk: build/config_headers headers/private/system src/system/boot/loader src/system/kernel

  • From: "Axel Dörfler" <axeld@xxxxxxxxxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Mon, 09 Nov 2009 09:39:08 +0100

Jérôme Duval <korli@xxxxxxxxxxxxxxxx> wrote:
> > * Added the possibility to debug latency issues with spinlocks.
> > * When DEBUG_SPINLOCK_LATENCIES is 1, the system will panic if any
> > spinlock is
> >  held longer than DEBUG_LATENCY micro seconds (currently 200). If
> > your system
> >  doesn't boot anymore, a new safemode setting can disable the panic.
> Seeing the code, I suppose it's also valid on SMP machines.

Yes, it is.

> Also I'm wondering how you chose the value for NUM_LATENCY_LOCKS.

It just supports up to 4 nested spinlocks. I doubt there is code that
needs more than 3 at a time, so this should be enough.

Bye,
   Axel.


Other related posts: