Update the "last malloc failure timestamp" also for simulated
malloc errors.
This commit is contained in:
parent
9b99e39d61
commit
3f6ee876c1
@ -211,6 +211,7 @@ malloc(size, type, flags)
|
||||
atomic_add_int(&malloc_nowait_count, 1);
|
||||
if ((malloc_nowait_count % malloc_failure_rate) == 0) {
|
||||
atomic_add_int(&malloc_failure_count, 1);
|
||||
t_malloc_fail = time_uptime;
|
||||
return (NULL);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user