Subject: Re: bug#60237: 30.0.50; tree sitter core dumps when I edebug view a node

From: Eli Zaretskii <[email-masked]>
Date: Sun, 26 Feb 2023 08:18:23 +0200

> From: Po Lu <[email-masked]>
> Cc: Eli Zaretskii <[email-masked]>,  Mickey Petersen
>  <[email-masked]>,  [email-masked]
> Date: Sun, 26 Feb 2023 10:37:17 +0800
> 
> Anyway, the profiler should either be fixed to not hook into xmalloc, or
> (better) tree-sitter should be fixed to not call xmalloc during GC.

That's what the "memory" profiler does, AFAIU.  It uses xmalloc as a
poor-man's timer.  It is rather useless and misleading, but if we
remove it, platforms that don't have timers and SIGPROF will not be
able to profile.

But maybe there are no such platforms?  (DJGPP has setitimer and
SIGPROF, so the MSDOS build shouldn't be a problem, although I never
tried profiling in the MSDOS build.)