gingerBill
cf4afc2e7b
Inline assert condition
2022-10-12 21:26:50 +01:00
gingerBill
5ed06f7eb8
Rename constants; minor rearrange of Arena layout
2022-10-12 21:23:45 +01:00
gingerBill
765cd66b30
Clean up minimum_block_size default implicit initialization
2022-10-12 21:20:31 +01:00
gingerBill
5a8fbc230d
Sanity corrections to virtual calls
2022-10-12 21:16:34 +01:00
gingerBill
5c62211f00
Inline resize logic for virtual.Arena
2022-10-12 20:44:36 +01:00
gingerBill
835b8ffa22
Update total_used for arena_static_reset_to
2022-10-12 20:30:48 +01:00
gingerBill
b84108c4b5
Inline align forward offset code
2022-10-12 20:28:51 +01:00
gingerBill
6642e1fc9d
Unify Static_Arena and Growing_Arena into Arena
2022-10-12 19:10:04 +01:00
gingerBill
aebafdcd08
update virtual.growing_arena_bootstrap_new
2022-10-04 10:18:32 +01:00
gingerBill
a35d6a6f8d
Improve mem/virtual handling of out of memory on Windows
2022-09-12 17:06:32 +01:00
gingerBill
ca76d53452
Fix more typos
2022-08-31 11:07:31 +01:00
gingerBill
b0a09f7b9e
Fix typo
2022-08-31 11:02:36 +01:00
gingerBill
027ea587fc
Unify mem and runtime logic
2022-08-26 16:45:40 +01:00
Jeroen van Rijn
3469178dc1
Fix #1973 .
2022-08-25 13:31:45 +02:00
gingerBill
5c298c1501
Minor text alignment
2022-08-15 10:22:32 +01:00
gingerBill
5e3cf45df3
Add #soa pointer type to aid with refactoring to #soa data types
...
a: #soa[16]Foo
p := &a[6]
#assert(type_of(p) == #soa^#soa[16]Foo)
p^.x = 123
p.x = 123
2022-08-08 15:07:00 +01:00
gingerBill
0e6a8b7c72
Make Growing_Arena reserve memory first and then commit as needed
...
It just committed all at once to begin with
2022-08-08 12:43:18 +01:00
gingerBill
147848ca20
Clean up naming conventions
2022-08-08 12:30:58 +01:00
gingerBill
c97a8418dc
Clean-up and unification for the allocation procedures
2022-08-08 12:23:19 +01:00
gingerBill
4aca9372a6
Improve resize call
2022-08-08 12:11:30 +01:00
Christoffer Lerno
f45e8e5d47
Added virtual memory headers for Darwin.
2022-07-29 20:01:26 +02:00
gingerBill
ca1f419dc2
Merge pull request #1819 from IanLilleyT/no_query_info
...
Allocator: tidying up Query_Info return values when not part of Query_Features
2022-06-12 17:15:08 +01:00
gingerBill
d04f732e68
Add fmt:"s,0" to allow arrays and multi-pointers to be printed with NUL termination
2022-06-12 13:07:43 +01:00
gingerBill
fb49841b1d
Remove strings dependency from core:sys/windows
2022-06-02 13:02:16 +01:00
Ian Lilley
dda2ed290a
tidying up Query_Info return value when not in query features
2022-06-01 22:40:39 -04:00
Ian Lilley
66de1856e3
tighter allocation for arena allocator
2022-06-01 21:37:05 -04:00
gingerBill
a1f15c2c69
Merge pull request #1807 from odin-lang/simd-dev
...
Generic #simd type and intrinsics
2022-05-31 11:52:24 +01:00
jason
10deb2e88b
fix mmap call in virtual_linux.odin
2022-05-25 21:51:36 -04:00
gingerBill
63d6c08d90
Add raw_simd_data
2022-05-25 22:09:38 +01:00
gingerBill
7d2eedee73
Unify raw_data in core:mem with core:runtime
2022-05-23 11:47:12 +01:00
gingerBill
10f1d8c604
Fix typo
2022-05-21 13:38:38 +01:00
gingerBill
3049e07f72
Add mem.DEFAULT_PAGE_SIZE
2022-05-21 13:30:09 +01:00
gingerBill
0cc67ff5e3
Add a return value to mem.zero_item and mem.zero_slice which is the same as the input
2022-05-17 22:42:37 +01:00
gingerBill
e10105a780
Correct logic for tracking allocator proc for freeing a nil pointer
2022-05-15 23:50:51 +01:00
gingerBill
5451c9672d
Fix dynamic_pool_destroy
2022-05-15 23:48:11 +01:00
Jeroen van Rijn
fe442d7c0c
[mem] Fix Dynamic_Pool.
2022-05-05 10:45:15 +02:00
gingerBill
a412d34574
Fix #1740
2022-04-26 11:35:34 +01:00
Jeroen van Rijn
7654afc2db
Revert "Update mem.nil_allocator to match the same in runtime"
...
The change broke JSON unmarshaling.
This reverts commit 4484a3433d .
2022-04-19 15:01:54 +02:00
gingerBill
ed4cb72b19
Merge pull request #1696 from Despacito696969/master
...
Fix for `slice_to_components` compilation error
2022-04-16 21:56:13 +01:00
hikari
698fcb7813
mem: replace size procedures with constants
2022-04-06 18:44:43 +03:00
Despacito696969
7f6c6945ae
Fix for slice_to_components
...
Using `slice_to_components` wouldn't compile because `s.data` is type of `rawptr` and return type is `^T`
2022-04-05 20:17:47 +02:00
gingerBill
4484a3433d
Update mem.nil_allocator to match the same in runtime
2022-03-31 15:03:56 +01:00
gingerBill
9f2d710c35
Change intrinsics.Atomic_Memory_Order fields to use Ada_Case rather than snake_case
2022-03-31 12:57:24 +01:00
gingerBill
ba1930eb01
Update core to use new atomic intrinsics
2022-03-31 00:22:54 +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
Jeroen van Rijn
f971126183
[mem] Add missing \n to tracking allocator example.
2022-03-01 13:51:41 +01:00
Jeroen van Rijn
a3d99765cc
mem: Add doc.odin with Tracking_Allocator example.
2022-02-05 22:18:22 +01: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