Update the "last malloc failure timestamp" also for simulated

malloc errors.
This commit is contained in:
Poul-Henning Kamp 2003-04-25 21:49:24 +00:00
parent 9b99e39d61
commit 3f6ee876c1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=114042

View File

@ -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);
}
}