[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Elisp native profiler

From: Tomohiro Matsuyama
Subject: Re: Elisp native profiler
Date: Wed, 26 Sep 2012 16:39:00 +0900

> On 09/25/2012 10:28 AM, Stefan Monnier wrote:
> > while it runs non-trivial code, it doesn't make any
> > system-call or anything like that
> But there are races if the SIGPROF handler runs in
> some other thread, no?  That bug could be worked around
> by using thread-specific timers (which are available
> in recent GNU/Linux but not older versions or in other
> POSIXish platforms). More portably, albeit more slowly,
> the SIGPROF handler could use deliver_process_signal,
> like the other handlers of process signals.
OK, I'll use thread-specific timers in recent GNU/Linux systems and use 
deliver_process_signal for older systems.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]