]> git.eshelyaron.com Git - emacs.git/commit
src/profiler.c: Try and fix occasional assertion failures
authorStefan Monnier <monnier@iro.umontreal.ca>
Fri, 10 Mar 2023 20:05:55 +0000 (15:05 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Fri, 10 Mar 2023 20:05:55 +0000 (15:05 -0500)
commitf97d4b9e54c7de3f67d78be8c63afcdb6b704531
tree786b5d17fdc3b03d6df53405daa4513973bcf347
parent9a5f2ac97ecd5f434690f04ed0b6573d2dd58148
src/profiler.c: Try and fix occasional assertion failures

Apparently the (>= match imatch) test fails sometimes in `profiler.el`.
Not sure where this comes from, but this patch should remove one
possible source.

* src/profiler.c (Fprofiler_cpu_log, Fprofiler_memory_log):
Change the special Automatic_GC backtrace to make it clear that it's
a *sibling* of the call tree (i.e. it's at the (its own) root).
(malloc_probe): Obey `size` when incrementing the gc_counter.
src/profiler.c