Re: [PATCH v2 gnumach] vm_map: Add comment and assert for vm_map_delete

2024-02-23 Thread Samuel Thibault
Applied, thanks! Damien Zammit, le ven. 23 févr. 2024 08:15:11 +, a ecrit: > This will prevent calling vm_map_delete without the map locked > unless ref_count is zero. > --- > vm/vm_map.c | 7 +++ > 1 file changed, 7 insertions(+) > > diff --git a/vm/vm_map.c b/vm/vm_map.c > index c237af

[PATCH v2 gnumach] vm_map: Add comment and assert for vm_map_delete

2024-02-23 Thread Damien Zammit
This will prevent calling vm_map_delete without the map locked unless ref_count is zero. --- vm/vm_map.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/vm/vm_map.c b/vm/vm_map.c index c237afbe..7db76b7b 100644 --- a/vm/vm_map.c +++ b/vm/vm_map.c @@ -551,10 +551,12 @@ void vm_map_deallo