Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
Severe loss of performance due to new signal handling
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2006-03-20 (16:15)
From: Markus Mottl <markus.mottl@g...>
Subject: Re: [Caml-list] Severe loss of performance due to new signal handling
On 3/20/06, Xavier Leroy <> wrote:
> Short explanation: atomic instructions are dog slow.

Thanks for the explanation.  I'd never have guessed that atomic instructions
could be responsible for such a deterioration of performance.

So, it's time to go back to the drawing board.  Fortunately, it
> appears that reliable polling of signals is possible without atomic
> processor instructions.  Expect a fix in 3.09.2 at the latest, and
> probably within a couple of weeks in the CVS.

Great!  Btw., since we are at it, you could also make us really happy by
fixing issue 3906 in the next release, too.  Now that the reason is clear
this should be very straightforward, and would save people who write certain
kinds of threaded code a lot of headaches, because this bug can cause all
sorts of weird problems in long-running applications (freezes, crashes,
execution of random code, etc.), and was extremely hard to trigger and track

Best regards,

Markus Mottl