mirror of
https://github.com/Ed94/metadesk.git
synced 2026-08-02 04:38:14 +00:00
reserve-commit-chain arenas
This commit is contained in:
@@ -36,7 +36,7 @@ static void CleanUp(void); // Runs at the end of generation.
|
||||
int main(int argument_count, char **arguments)
|
||||
{
|
||||
// setup the global arena
|
||||
arena = MD_ArenaAlloc(1ull << 40);
|
||||
arena = MD_ArenaAlloc();
|
||||
|
||||
// parse all files passed to the command line
|
||||
MD_b32 failed_parse = 0;
|
||||
|
||||
@@ -14,7 +14,7 @@ static MD_Arena *arena = 0;
|
||||
int
|
||||
main(int argc, char **argv){
|
||||
// setup the global arena
|
||||
arena = MD_ArenaAlloc(1ull << 40);
|
||||
arena = MD_ArenaAlloc();
|
||||
|
||||
// parse a string
|
||||
MD_String8 name = MD_S8Lit("<name>");
|
||||
|
||||
@@ -22,9 +22,7 @@ static MD_Arena *arena = 0;
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
// setup the global arena
|
||||
// @notes This code makes an arena with a 1 terabyte reserve which works as
|
||||
// long as we only have one or a few arenas.
|
||||
arena = MD_ArenaAlloc(1ull << 40);
|
||||
arena = MD_ArenaAlloc();
|
||||
|
||||
// parse all files passed to the command line
|
||||
MD_Node *list = MD_MakeList(arena);
|
||||
|
||||
@@ -57,7 +57,7 @@ int
|
||||
main(int argc, char **argv)
|
||||
{
|
||||
// setup the global arena
|
||||
arena = MD_ArenaAlloc(1ull << 40);
|
||||
arena = MD_ArenaAlloc();
|
||||
|
||||
// parse all files passed to the command line
|
||||
MD_Node *list = MD_MakeList(arena);
|
||||
|
||||
@@ -20,7 +20,7 @@ static MD_Arena *arena = 0;
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
// setup the global arena
|
||||
arena = MD_ArenaAlloc(1ull << 40);
|
||||
arena = MD_ArenaAlloc();
|
||||
|
||||
// parse all files passed to the command line
|
||||
MD_Node *list = MD_MakeList(arena);
|
||||
|
||||
Reference in New Issue
Block a user