This saves 616-584 = 32 bytes per struct vmspace on amd64, which allows to pack 7 vmspaces per page vs. 6 for non-overlapping layout. I used anonymous union member feature to avoid too much churn.
Details
Details
- Reviewers
alc markj dougm - Commits
- rG32873ecb20ae: vm_map(9): some refresh
rGfae0cc5fd82d: vm/vm_map.h: drop vm_flags_t
rGd939fd2d4512: vm_map: convert several bool members into flags
rGb4431e95542a: vm/vm_map.h: extend number of digits in vm_map flags definitions
rGc5b19cef3609: vm_map: wrap map->system_map checks into wrapper
rG6ed68e6f5d47: vm_map: overlap system map mutex and user man sx
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
My comments are just suggestions.
sys/vm/vm_map.c | ||
---|---|---|
296 | Maybe explicitly set map->system_map = false here, just for clarity. | |
sys/vm/vm_map.h | ||
214 | Should we change the system_map type to bool? | |
488–489 | As a matter of style, I'd prefer a separate vm_map_init_system() rather than having a naked boolean parameter. |