mirror of
https://github.com/masscollaborationlabs/emacs.git
synced 2025-07-07 12:49:38 +00:00
* src/profiler.c (malloc_probe): Make it safe for GC (bug#60237)
This commit is contained in:
parent
1f1d36fa80
commit
07f3236133
1 changed files with 3 additions and 0 deletions
|
@ -505,6 +505,9 @@ Before returning, a new log is allocated for future samples. */)
|
||||||
void
|
void
|
||||||
malloc_probe (size_t size)
|
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));
|
eassert (HASH_TABLE_P (memory_log));
|
||||||
record_backtrace (XHASH_TABLE (memory_log), min (size, MOST_POSITIVE_FIXNUM));
|
record_backtrace (XHASH_TABLE (memory_log), min (size, MOST_POSITIVE_FIXNUM));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue