summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControlReference/ExpressionParser.cpp
diff options
context:
space:
mode:
authorAdmiral H. Curtiss <pikachu025@gmail.com>2023-11-28 21:17:12 +0100
committerAdmiral H. Curtiss <pikachu025@gmail.com>2023-12-09 21:11:31 +0100
commit3364d571cca88344bd7cc1364951f5f7b4a11ce9 (patch)
treede776cbe49b149ea138bff9f90c262a393b7b7b3 /Source/Core/InputCommon/ControlReference/ExpressionParser.cpp
parenteb235d6ee30c0f15c775a08842aa070a7839b137 (diff)
Common/MemArenaWin: Rewrite LazyMemoryRegion to manually map memory blocks into the large memory region as needed.
Internal details: The large region is split into individual same-sized blocks of memory. On creation, we allocate a single block of memory that will always remain zero, and map that into the entire memory region. Then, the first time any of these blocks is written to, we swap the mapped zero block out with a newly allocated block of memory. On clear, we swap back to the zero block and deallocate the data blocks. That way we only actually allocate one zero block as well as a handful of real data blocks where the JitCache actually writes to.
Diffstat (limited to 'Source/Core/InputCommon/ControlReference/ExpressionParser.cpp')
0 files changed, 0 insertions, 0 deletions