[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: MPS: profiler
From: |
Helmut Eller |
Subject: |
Re: MPS: profiler |
Date: |
Fri, 21 Jun 2024 14:01:44 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
On Fri, Jun 21 2024, Gerd Möllmann wrote:
> I'm still not sure. What I'm trying to say is that we need to be sure
> that there are no windows left in which things can change. I'd be most
> comfortable ATM if the first thing the SIGPROF handler does is check
> is_busy and immediately returns, doing nothing.
Let's assume for moment that SIGPROF and SIGSEGV are handled in the same
thread. Then either SIGPROF comes before SIGSEGV or after.
Case 1 (SEGPROF before SIGSEGV): here mps_arena_busy will return false
and will access the MPS-managed memory. This is fine, because to MPS
this is no different than any other client code.
Case 2 (SEGSEGV before SIGPROF): here mps_arena_busy will return true
and we only increase a counter. This is also fine.
Convinced this is safe and that we that have covered all cases?
Now for the harder situation where SIGPROF and SIGSEGV aren't handled in
the same thread. Well, I would say that this doesn't happen in Emacs.
But maybe somebody can come up with example where it does.
- Re: MPS: profiler, (continued)
- Re: MPS: profiler, Helmut Eller, 2024/06/21
- Re: MPS: profiler, Ihor Radchenko, 2024/06/21
- Re: MPS: profiler, Helmut Eller, 2024/06/21
- Re: MPS: profiler, Gerd Möllmann, 2024/06/21
- Re: MPS: profiler, Helmut Eller, 2024/06/21
- Re: MPS: profiler, Gerd Möllmann, 2024/06/21
- Re: MPS: profiler, Eli Zaretskii, 2024/06/21
- Re: MPS: profiler, Gerd Möllmann, 2024/06/21
- Re: MPS: profiler,
Helmut Eller <=
- Re: MPS: profiler, Ihor Radchenko, 2024/06/21
- Re: MPS: profiler, Helmut Eller, 2024/06/21
- Re: MPS: profiler, Ihor Radchenko, 2024/06/21
- MPS make-thread (was: MPS: profiler), Helmut Eller, 2024/06/21
- Re: MPS make-thread, Gerd Möllmann, 2024/06/21
- Re: MPS make-thread, Gerd Möllmann, 2024/06/21
- Re: MPS make-thread, Helmut Eller, 2024/06/21
- Re: MPS make-thread, Gerd Möllmann, 2024/06/21
- Re: MPS make-thread, Gerd Möllmann, 2024/06/21
- Re: MPS make-thread, Ihor Radchenko, 2024/06/21