jason
10deb2e88b
fix mmap call in virtual_linux.odin
2022-05-25 21:51:36 -04:00
gingerBill
a412d34574
Fix #1740
2022-04-26 11:35:34 +01:00
gingerBill
4eb4ae6305
Replace sync with sync2
2022-03-30 17:42:44 +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
Yawning Angel
61c581baeb
core/sys/unix: Add syscalls_linux.odin
...
Linux is in the unfortunate situation where the system call number is
architecture specific. This consolidates the system call number
definitions in a single location, adds some wrappers, and hopefully
fixes the existing non-portable invocations of the syscall intrinsic.
2021-11-17 14:00:00 +00:00
gingerBill
58e3f779f2
Remove nonsense from static_arena_init
2021-10-05 17:12:24 +01:00
gingerBill
455d64fbd4
Add error value to commit
2021-10-05 17:11:12 +01:00
gingerBill
16ca677c1f
Correct mmap usage
2021-10-05 17:05:33 +01:00
gingerBill
1f1434b384
Add arena_util.odin
2021-10-05 16:42:42 +01:00
gingerBill
f83370235f
Add static_arena_bootstrap_new
2021-10-05 16:39:14 +01:00
gingerBill
4961aff51b
Minor cleanup
2021-10-05 16:37:15 +01:00
gingerBill
bc2b8b597c
Add virtual.Static_Arena
2021-10-05 16:28:14 +01:00
gingerBill
ccc4c641c4
Clean up Memory_Block logic
2021-10-05 16:25:30 +01:00
gingerBill
9d9ec192f1
Rename to growing_arena.odin
2021-10-04 17:57:59 +01:00
gingerBill
586a000152
Add Protect_Flags for virtual.protect
2021-10-04 17:42:15 +01:00
gingerBill
728f143e33
Add virtual_linux.odin
2021-10-04 17:30:06 +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
e05a305764
Minor clean up
2021-10-03 12:43:11 +01:00
gingerBill
a437c95fed
Remove mutex from Growing_Arena; Add Growing_Arena_Temp
2021-10-03 12:41:24 +01:00
gingerBill
8fe70978ff
Add @(init) usage to core:mem/virtual
2021-10-03 12:40:51 +01:00
gingerBill
08ac2fd1b6
Rename virtual.Arena to virtual.Growing_Arena
2021-09-29 16:50:36 +01:00
gingerBill
b2a36f204e
Add a mutex to arena_free_all
2021-09-29 16:46:14 +01:00
gingerBill
efdd5cf499
Add a mutex to virtual.Arena
2021-09-29 16:43:58 +01:00
gingerBill
805e48ae1e
Add core:mem/virtual
2021-09-29 16:39:20 +01:00