summaryrefslogtreecommitdiff
path: root/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2026-01-04 02:19:36 +0200
committerKonstantin Belousov <kib@FreeBSD.org>2026-01-13 16:03:14 +0200
commitde770681234d001a1f4cdb8121179331dc3a2def (patch)
tree3db8040c7b6d87dab8575bfd8150b49581b794b2 /source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp
parent7361727d4584b5e303183c836497ae2754ce0e53 (diff)
rfork(2): fix swap accounting in vmspace_unshare()
When an attempt to increase the swap charge for the ucred failed, we must forcibly increase the charge to allow the vmspace_destroy() operation to correctly un-charge the accumulated objects. Add a swap_reserve_force_by_cred() helper and use it in vmspace_unshare(), same as it is done in normal fork operations. Reviewed by: markj Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D54572
Diffstat (limited to 'source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp')
0 files changed, 0 insertions, 0 deletions