diff options
author | jeff <jeff@FreeBSD.org> | 2002-04-07 22:47:36 +0000 |
---|---|---|
committer | jeff <jeff@FreeBSD.org> | 2002-04-07 22:47:36 +0000 |
commit | bb68bec489ecee2f062219286f392059fbe4c58d (patch) | |
tree | 48f618ee2ce76e58a077278b4b16818e01754c3a /sys/vm/uma_core.c | |
parent | 9a3f81312663b19b02ddfea97e4b640ee587b20d (diff) | |
download | FreeBSD-src-bb68bec489ecee2f062219286f392059fbe4c58d.zip FreeBSD-src-bb68bec489ecee2f062219286f392059fbe4c58d.tar.gz |
This fixes a bug where isitem never got set to 1 if a certain chain of events
relating to extreme low memory situations occured. This was only ever seen on
the port build cluster, so many thanks to kris for helping me debug this.
Tested by: kris
Diffstat (limited to 'sys/vm/uma_core.c')
-rw-r--r-- | sys/vm/uma_core.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/vm/uma_core.c b/sys/vm/uma_core.c index 218ffbb..e3c59b1 100644 --- a/sys/vm/uma_core.c +++ b/sys/vm/uma_core.c @@ -1366,6 +1366,8 @@ uma_zalloc_internal(uma_zone_t zone, void *udata, int wait, int *isitem, int cpu CPU_UNLOCK(zone, cpu); cache = NULL; cpu = -1; + if (isitem != NULL) + *isitem = 1; } } } |