2
0
Эх сурвалжийг харах

Merge pull request #3779 from karl-zylinski/clarify-usage-of-temp-allocator-arena

Clarify when the arena in base:runtime should be used
gingerBill 1 жил өмнө
parent
commit
dc03e8380d

+ 2 - 1
base/runtime/default_allocators_arena.odin → base/runtime/default_temp_allocator_arena.odin

@@ -12,7 +12,8 @@ Memory_Block :: struct {
 	capacity:  uint,
 }
 
-// NOTE: This is for internal use, prefer `Arena` from `core:mem/virtual` if necessary
+// NOTE: This is a growing arena that is only used for the default temp allocator.
+// For your own growing arena needs, prefer `Arena` from `core:mem/virtual`.
 Arena :: struct {
 	backing_allocator:  Allocator,
 	curr_block:         ^Memory_Block,