No functional change.
Details
Diff Detail
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 31749 Build 29315: arc lint + arc unit
Event Timeline
sys/vm/vm_map.c | ||
---|---|---|
2461 | Why not do the same for vm_map_clip_start()? Do we even need a separate _vm_map_clip_end()? |
sys/vm/vm_map.c | ||
---|---|---|
2461 | start: I just didn't have a reason to modify vm_map_clip_start. If it also sometimes allocates memory, it's worth doing something similar. The rationale for this change is exclusively D25283 ; this was just done separately to highlight the functional change in the child revision. Do we even need the wrapper? I don't know. I assume the idea of the macro was that it was more equivalent to __always_inline rather than plain inline, and that the longer function might not always be inlined. We could use __always_inline over inline here. I don't know if compiler heuristics result in the wrapped function being inlined or not. Maybe _vm_map_clip_end used to be in a separate CU, so it couldn't be inlined from the header, while the macro could? I don't know the history of this code very well. |
sys/vm/vm_map.c | ||
---|---|---|
2461 | Please modify vm_map_clip_start() to avoid making them inconsistent. It can also allocate an entry. vm_map_clip_start() and _end() do pretty much the same thing, they just operate on different ends of a VA range. I think the wrapper made more sense before recent refactorings. If you look at e.g., stable/11, _vm_map_clip_start()/end() were much longer. Doug has refactored them since then. It should be fine to just merge them. |
sys/vm/vm_map.c | ||
---|---|---|
2461 | Sounds good to me. |