projects
/
onyx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d4ed26d
)
temp_allocator should have been thread_local
author
Brendan Hansen
<brendan.f.hansen@gmail.com>
Fri, 2 Sep 2022 02:39:20 +0000
(21:39 -0500)
committer
Brendan Hansen
<brendan.f.hansen@gmail.com>
Fri, 2 Sep 2022 02:39:20 +0000
(21:39 -0500)
core/alloc.onyx
patch
|
blob
|
history
diff --git
a/core/alloc.onyx
b/core/alloc.onyx
index 3d4d131364e0a6b71cd184e08e21af6b620e296f..b55c0d0457463b6f9d3340a790004b8cb30fb884 100644
(file)
--- 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 :: () {