gingerBill
7642e0a0e0
Require @(init) and @(fini) to be proc "contextless" ()
2025-08-08 12:10:01 +01:00
gingerBill
0dd0a3813b
Fix very subtle bug in virtual.memory_block_alloc
2025-07-20 15:32:22 +01:00
Feoramund
efba9a1fb7
Disable usage of AddressSanitizer pending a per-allocator review
...
It has been discovered that AddressSanitizer does not keep a 1:1 mapping
of which bytes are poisoned and which are not. This can cause issues for
allocations less than 8 bytes and where addresses straddle 8-byte
boundaries.
See the following link for more information:
https://github.com/google/sanitizers/wiki/AddressSanitizerAlgorithm#mapping
2025-06-15 15:06:28 -04:00
Lucas Perlind
83bc2d3c4a
Add asan support for various allocators
2025-05-06 14:55:50 +10:00
Laytan Laats
fd2ad20cd4
mem/virtual: use sysconf for retrieving page size and actually use these init procs
2024-08-29 14:36:32 +02:00
gingerBill
f9b14500be
Add default_commit_size to virtual.Arena
2024-03-07 12:30:34 +00:00
gingerBill
3e7e779abf
Replace core:* to base:* where appropriate
2024-01-28 22:18:51 +00: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
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
gingerBill
8d6ce0b693
Add mutex to virtual.Arena; add virtual.arena_temp_ignore
2023-01-28 11:51:58 +00:00
gingerBill
7d217269b5
Add Arena_Kind.Buffer to core:mem/virtual
2022-10-26 13:37:20 +01:00
gingerBill
53e84b7f31
Remove doubly linked list of Platform_Memory_Block fields
2022-10-19 23:39:47 +01:00
gingerBill
ff51c5ee56
Wrap intrinsics.overflow_add to safe_add
2022-10-15 12:52:07 +01:00
gingerBill
7662808bc9
Add overflow_add checks to alloc_from_memory_block
2022-10-13 12:53:33 +01:00
gingerBill
5a8fbc230d
Sanity corrections to virtual calls
2022-10-12 21:16:34 +01:00
gingerBill
a35d6a6f8d
Improve mem/virtual handling of out of memory on Windows
2022-09-12 17:06:32 +01:00
gingerBill
a412d34574
Fix #1740
2022-04-26 11:35:34 +01:00
gingerBill
7e5342f41f
Use contextless where possible
2022-03-01 15:52:14 +00:00
gingerBill
18607e53cb
Correct alloc_from_memory_block
2022-03-01 15:38:04 +00:00
gingerBill
455d64fbd4
Add error value to commit
2021-10-05 17:11:12 +01:00
gingerBill
ccc4c641c4
Clean up Memory_Block logic
2021-10-05 16:25:30 +01:00
gingerBill
586a000152
Add Protect_Flags for virtual.protect
2021-10-04 17:42:15 +01:00
gingerBill
f2e78dcc0b
Separate out the virtual memory allocation procedures
...
`reserve`, `commit`, `reserve_and_commit`, `decommit`, `release`, `protect`
2021-10-04 16:43:52 +01:00
gingerBill
8fe70978ff
Add @(init) usage to core:mem/virtual
2021-10-03 12:40:51 +01:00
gingerBill
805e48ae1e
Add core:mem/virtual
2021-09-29 16:39:20 +01:00