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

  • From: Jérôme Duval <korli@xxxxxxxxxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Mon, 9 Nov 2009 00:00:48 +0100

Hi Axel,

2009/11/8  <axeld@xxxxxxxxxxxxxxxx>:
> Author: axeld
> Date: 2009-11-08 21:26:48 +0100 (Sun, 08 Nov 2009)
> New Revision: 33953
> Changeset: http://dev.haiku-os.org/changeset/33953/haiku
> Log:
> * 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.
Also I'm wondering how you chose the value for NUM_LATENCY_LOCKS.

Thanks,
Jérôme

Other related posts: