278 Commits

Author SHA1 Message Date
Chris
55141bdbb1 Make Mutex_Allocator use Ada_Case 2024-03-13 15:29:02 +00:00
gingerBill
e01701ce0e Fix typo 2024-03-07 12:32:46 +00:00
gingerBill
f9b14500be Add default_commit_size to virtual.Arena 2024-03-07 12:30:34 +00:00
gingerBill
6d5b1800fe Fix typo 2024-03-06 16:34:17 +00:00
gingerBill
0f5328973e Add mem.Mutex_Allocator 2024-03-06 16:33:54 +00:00
gingerBill
65277ddd6b Add missing attribute 2024-03-06 16:30:39 +00:00
gingerBill
46718d6d85 Add Query_Info to Buddy_Allocator 2024-03-06 16:26:10 +00:00
gingerBill
2a0543d2f0 Add mem.Buddy_Allocator 2024-03-06 16:14:45 +00:00
gingerBill
792f06a234 Fix indentation 2024-03-06 15:29:07 +00:00
gingerBill
ffa3669d02 Add virtual.Arena utilities: new, new_aligned, make 2024-03-06 15:23:56 +00:00
Laytan
9b4cd0743c mem/virtual: fix arena_static_reset_to inverted logic 2024-02-06 20:24:38 +01:00
gingerBill
539cec7496 Move Tracking_Allocator to its own file. 2024-02-01 13:01:38 +00:00
gingerBill
9a16bc5fc5 Remove core:os dependency for base:runtime 2024-01-28 22:40:46 +00:00
gingerBill
3e7e779abf Replace core:* to base:* where appropriate 2024-01-28 22:18:51 +00:00
gingerBill
799f4379d8 Keep vet happy 2024-01-17 22:51:49 +00:00
gingerBill
bd51b21386 Fix typo 2024-01-17 22:47:23 +00:00
gingerBill
276284cbec Fix typo 2024-01-17 22:44:28 +00:00
gingerBill
a8021f03a6 Rename to Map_File_* 2024-01-17 22:43:35 +00:00
gingerBill
c35d5d4c42 Merge branch 'master' of https://github.com/odin-lang/Odin 2024-01-17 22:41:28 +00:00
gingerBill
248a0bfa5f Add virtual.map_file 2024-01-17 22:41:22 +00:00
Colin Davidson
b6838731f5 oops, indentation 2024-01-17 13:30:03 -08:00
Colin Davidson
991c1d4446 add resize_non_zeroed to query features 2024-01-17 13:27:19 -08:00
Colin Davidson
d0bb1fb844 bring log allocator up to date 2024-01-17 13:11:10 -08:00
gingerBill
90ac400ec5 stdcall -> system 2024-01-17 17:25:23 +00:00
xb-bx
c6c710465a fix 2024-01-08 19:54:39 +02:00
Laytan
baa5ea9258 fix not passing arg everywhere 2023-12-18 16:41:55 +01:00
Laytan
9a490e4e0d fix big alignment 2023-12-18 16:38:51 +01:00
Laytan Laats
252de70b0f fix same problem in virtual arena 2023-12-18 15:41:36 +01:00
Karl Zylinski
65333181fc virtual arena: Actually use DEFAULT_ARENA_STATIC_RESERVE_SIZE as default value on arena_init_static 2023-12-04 21:15:46 +01:00
Colin Davidson
bfbeb23f54 add resize non zeroed in more places 2023-12-04 03:09:13 -08:00
Colin Davidson
58e4a011c7 add non-zeroing append and resize 2023-12-04 00:08:13 -08:00
flysand7
270348b112 [core]: Remove do keyword from the core library 2023-11-11 20:36:38 +11:00
flysand7
4d65b1ab9c Implement new sys/unix package 2023-10-27 10:51:21 +11:00
Laytan Laats
93caf5b311 use memory formatting in tracking allocator doc 2023-09-01 22:05:04 +02:00
Laytan Laats
735cfcd290 Add formatting of bytes into the best unit of measurement 2023-09-01 19:17:07 +02:00
gingerBill
2153cb7e0a Merge pull request #2721 from Kartoffelsaft/dynamic-pool-alloc
Return .Invalid_Argument in pool allocator to avoid potential segfaults
2023-08-16 12:02:21 +01:00
Benjamin Findley
7e4a65114a fix whitespace 2023-08-15 08:49:27 -07:00
gingerBill
27931249ce Scale by 3/2 rather than 5/4 2023-08-15 15:45:12 +01:00
gingerBill
52318d0e0e Improve heuristic for committing memory with virtual.alloc_from_memory_block 2023-08-15 15:42:28 +01:00
gingerBill
8d673789be Align committed to a page size 2023-08-15 15:20:23 +01:00
gingerBill
646c4c7458 alloc_from_memory_block to commit amounts equal to multiples of the DEFAULT_PAGE_SIZE 2023-08-15 15:12:12 +01:00
Benjamin Findley
38e06f13d6 prevent potential segfaults when using large allocations from dynamic pool 2023-08-11 11:49:31 -07:00
gingerBill
9736402dfd Fix docs typo 2023-08-07 15:34:28 +01:00
gingerBill
44ea82f845 Clean up usage of using throughout core and vendor 2023-07-31 11:46:40 +01:00
Eric Johnson
c6957e4e31 Fix small doc mistakes in arena.odin 2023-07-11 13:41:12 -07:00
gingerBill
3d9328fd79 Default to panic allocator for wasm targets 2023-06-26 15:55:52 +01:00
gingerBill
9b54b99bf6 Use positional and named arguments within the core library 2023-06-21 01:17:05 +01:00
gingerBill
d37699f51a Add bsd to mem/virtual 2023-06-07 23:07:31 +01:00
gingerBill
4a75a1e839 Merge branch 'master' into separate-int-word-sizes 2023-06-06 22:42:04 +01:00
Axel Pahl
1cdb0abf80 Update core/mem/doc.odin 2023-06-06 15:17:18 +02:00