aboutsummaryrefslogtreecommitdiff
path: root/src/linker.cpp
diff options
context:
space:
mode:
authorBarinzaya <barinzaya@gmail.com>2025-01-24 09:42:10 -0500
committerBarinzaya <barinzaya@gmail.com>2025-01-24 10:13:46 -0500
commit98b3a9eacd9b95a5db75fb001da0bfb0c7a18645 (patch)
treebe2371d06686194dee971955b8fe87791282aad9 /src/linker.cpp
parent3a13c598e2efb46f12121bb532f8f3616d2cf482 (diff)
Added support for growing in place to some arenas.
This affects `runtime.Arena` and `virtual.Arena`, but not currently `mem.Arena`. These changes allow the last allocation that has been made to be resized to a larger size by just extending their allocation in-place, when there's sufficient room in the memory block to do so. Shrinking in place and re-using the rest of the allocation can be supported using almost the same logic, but would require the memory to be zeroed. Since this would add a additional cost that isn't currently present, shrinking has not been changed.
Diffstat (limited to 'src/linker.cpp')
0 files changed, 0 insertions, 0 deletions