emacs-diffs
[Top][All Lists]
Advanced

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

emacs-29 07f3236133b: * src/profiler.c (malloc_probe): Make it safe for


From: Stefan Monnier
Subject: emacs-29 07f3236133b: * src/profiler.c (malloc_probe): Make it safe for GC (bug#60237)
Date: Wed, 1 Mar 2023 12:38:19 -0500 (EST)

branch: emacs-29
commit 07f3236133b01cb65806eb1a6bf2ebaecbdd2d81
Author: Stefan Monnier <monnier@iro.umontreal.ca>
Commit: Stefan Monnier <monnier@iro.umontreal.ca>

    * src/profiler.c (malloc_probe): Make it safe for GC (bug#60237)
---
 src/profiler.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/profiler.c b/src/profiler.c
index 81b5e7b0cf0..8247b2e90c6 100644
--- a/src/profiler.c
+++ b/src/profiler.c
@@ -505,6 +505,9 @@ Before returning, a new log is allocated for future 
samples.  */)
 void
 malloc_probe (size_t size)
 {
+  if (EQ (backtrace_top_function (), QAutomatic_GC)) /* bug#60237 */
+    /* FIXME: We should do something like what we did with `cpu_gc_count`.  */
+    return;
   eassert (HASH_TABLE_P (memory_log));
   record_backtrace (XHASH_TABLE (memory_log), min (size, 
MOST_POSITIVE_FIXNUM));
 }



reply via email to

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