Comment
Comment by 10000truths
Yep, virtual memory aliasing comes in handy when you’re working with data structures that can have page-level granularity. One of my favorite tricks is to create a ‘magic ring buffer’ by mapping two contiguous virtual pages to the same physical page, so that the wraparound is handled transparently by the MMU at no extra cost.