Bug fixes to allocators and containers

Still haven't found the main bug with resizing zpl_hashmap on string interning
This commit is contained in:
2024-05-06 23:29:47 -04:00
parent 0e27635a9b
commit 1e6e9581c3
16 changed files with 276 additions and 52 deletions

View File

@ -8,6 +8,8 @@ import "core:os"
import rl "vendor:raylib"
Str_App_State := "App State"
Memory_App : Memory
Memory_Base_Address_Persistent :: Terabyte * 1
@ -40,6 +42,8 @@ Memory :: struct {
transient : ^VArena,
files_buffer : ^VArena,
state : ^State,
// Should only be used for small memory allocation iterations
// Not for large memory env states
snapshot : MemorySnapshot,
@ -199,7 +203,8 @@ State :: struct {
}
get_state :: proc "contextless" () -> ^ State {
return cast( ^ State ) Memory_App.persistent.reserve_start
// return cast( ^ State ) Memory_App.persistent.reserve_start
return Memory_App.state
}
AppWindow :: struct {