* 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
|
||||
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));
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue