Date: Tue, 19 Jul 2022 13:48:16 GMT From: Mark Johnston <markj@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 0a356f1eb989 - stable/13 - vm_object: Assert that overcommit charge is released in the object dtor Message-ID: <202207191348.26JDmGIq024572@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=0a356f1eb9890c691364bdfed942f7b1bf758ab6 commit 0a356f1eb9890c691364bdfed942f7b1bf758ab6 Author: Mark Johnston <markj@FreeBSD.org> AuthorDate: 2022-07-12 12:53:05 +0000 Commit: Mark Johnston <markj@FreeBSD.org> CommitDate: 2022-07-19 13:36:32 +0000 vm_object: Assert that overcommit charge is released in the object dtor Reviewed by: alc, kib Sponsored by: The FreeBSD Foundation (cherry picked from commit e1979b45b63725972d394562f95d89f8cc9a0bb4) --- sys/vm/vm_object.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/vm/vm_object.c b/sys/vm/vm_object.c index efd646cf52e0..4272a734b233 100644 --- a/sys/vm/vm_object.c +++ b/sys/vm/vm_object.c @@ -204,6 +204,9 @@ vm_object_zdtor(void *mem, int size, void *arg) KASSERT(object->type == OBJT_DEAD, ("object %p has non-dead type %d", object, object->type)); + KASSERT(object->charge == 0 && object->cred == NULL, + ("object %p has non-zero charge %ju (%p)", + object, (uintmax_t)object->charge, object->cred)); } #endif
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202207191348.26JDmGIq024572>