From: Brendan Hansen Date: Fri, 2 Sep 2022 02:39:20 +0000 (-0500) Subject: temp_allocator should have been thread_local X-Git-Url: https://git.brendanfh.com/?a=commitdiff_plain;h=d5f72d10f787fb578fb4ff52115fc6f427f8750e;p=onyx.git temp_allocator should have been thread_local --- diff --git a/core/alloc.onyx b/core/alloc.onyx index 3d4d1313..b55c0d04 100644 --- a/core/alloc.onyx +++ b/core/alloc.onyx @@ -33,6 +33,8 @@ heap_allocator : Allocator; // The global temp allocator, set up upon program intialization. #local #thread_local temp_state : arena.ArenaState; + +#thread_local temp_allocator : Allocator; init_temp_allocator :: () {