Commit Graph

14381 Commits

Author SHA1 Message Date
Jeroen van Rijn
3d13beb3ec Remove now-implemented TODO 2025-04-14 20:09:55 +02:00
Jeroen van Rijn
11af4cebb7 Merge pull request #5037 from Kelimion/tlsf
Allow `core:mem/tlsf` to automatically add new pools.
2025-04-14 20:00:39 +02:00
Jeroen van Rijn
beee27dec0 Allow core:mem/tlsf to automatically add new pools.
New features:
- If TLSF can't service an allocation made on it, and it's initialized with `new_pool_size` > 0, it will ask the backing allocator for additional memory.

- `estimate_pool_size` can tell you what size your initial (and `new_pool_size`) ought to be if you want to make `count` allocations of `size` and `alignment`, or in its other form, how much backing memory is needed for `count` allocations of `type` and its corresponding size and alignment.
2025-04-14 19:49:55 +02:00
Jeroen van Rijn
66d99c1be3 Merge pull request #5036 from Kelimion/tlsf
Refactor `core:mem/tlsf`, add `free_all` support.
2025-04-14 17:30:46 +02:00
Jeroen van Rijn
7088284ff4 Refactor core:mem/tlsf, add free_all support.
TODO: Allow the TLSF allocator to add additional pools when it would ordinarily OOM
      by calling its backing allocator.
2025-04-14 17:13:27 +02:00
Jeroen van Rijn
9516084e58 Merge pull request #5035 from Sojamann/sync_chan-maintainance
core:sync/chan: maintainance and package clarity
2025-04-13 23:13:07 +02:00
Robin Bergewski
1c6958d443 core:sync/chan: maintainance and package clarity
this deprecates all procedures around 'Raw_Queue' for it to
become package private.
2025-04-13 22:56:40 +02:00
Jeroen van Rijn
a98cbe2cc9 Merge pull request #5034 from Kelimion/yeet-tuple
Remove Type_Info_Tuple
2025-04-13 21:59:32 +02:00
Jeroen van Rijn
bb38775fb1 Remove Type_Info_Tuple 2025-04-13 21:51:57 +02:00
Laytan
ddcd7a368b Merge pull request #5033 from jasonKercher/fix-dirent-name
Fix linux.dirent_name
2025-04-13 18:14:02 +02:00
jason
4998d4ebd0 Fix linux.dirent_name
Was not searching the first possible byte for 0.
2025-04-13 12:05:39 -04:00
Jeroen van Rijn
c10cf312ff Merge pull request #5032 from Sojamann/sync_chan-doc
core:sync/chan: add package documentation
2025-04-13 17:09:18 +02:00
Robin Bergewski
4ec93ffe39 fix indent 2025-04-13 16:40:08 +02:00
Robin Bergewski
ec71a5afb1 fix missing imports 2025-04-13 16:33:25 +02:00
Robin Bergewski
19eb53c321 changes due to review 2025-04-13 15:34:14 +02:00
Jeroen van Rijn
0e9cd0fb6a Prepare for tlsf.free_all 2025-04-13 15:20:53 +02:00
Robin Bergewski
ca72aba9eb core:sync/chan: add package documentation 2025-04-13 15:07:06 +02:00
Laytan Laats
74a66f7794 os2: fix get_executable_path() on FreeBSD including the nil-terminator 2025-04-12 21:33:44 +02:00
Jeroen van Rijn
32c9f6d13a Remove bit_field -> bit_set warning.
The "This 'bit_field' might be better expressed as a 'bit_set' since all of the fields are booleans, of 1-bit in size, and the backing type is an integer" warning is imperfect. Disable it for now.
2025-04-12 14:01:18 +02:00
Jeroen van Rijn
0a97e01827 Add tests for type_elem_type on SIMD vectors 2025-04-11 23:31:02 +02:00
Jeroen van Rijn
29b03adab1 Merge pull request #5030 from Kelimion/type_elem_type
Allow intrinsics.type_elem_type(simd_vector) to return the element type.
2025-04-11 22:51:28 +02:00
Jeroen van Rijn
41d4ddbc5e Add reflect.length + reflect.capacity support for #simd[N]T 2025-04-11 22:44:02 +02:00
Jeroen van Rijn
f4ce84dfb4 Add fix to reflect.typeid_elem 2025-04-11 22:24:19 +02:00
Jeroen van Rijn
04807309b7 Allow intrinsics.type_elem_type(simd_vector) to return the element type.
Make `type_elem_type(#simd[4]f32)` return `f32`, same as it would for `[4]f32`.
2025-04-11 21:49:48 +02:00
Laytan
23a2821353 Merge pull request #5028 from Feoramund/fix-macos-version-reporting
Fix Darwin version reporting for older macOS
2025-04-10 22:37:45 +02:00
Feoramund
840c863786 Fix Darwin version reporting for older macOS 2025-04-10 16:25:08 -04:00
Jeroen van Rijn
b27008e0f9 Simplify condition, op = Token_Sub was trivially true 2025-04-10 17:58:54 +02:00
Jeroen van Rijn
3a7691c714 Fixes #5026 2025-04-10 17:54:58 +02:00
gingerBill
1980ad8851 Merge pull request #4998 from dozn/patch-1
[core:time/timezone] Nanoseconds Not Preserved on Calls to `timezone.datetime_to_tz`
2025-04-10 14:01:25 +01:00
gingerBill
77d6cc1e90 Merge pull request #5025 from openhood/wgpu-fix-wrong-function-name
Fix wrong function name from `genericAdapterInfo` to `genericGetAdapterInfo` in wgpu.js
2025-04-10 14:00:58 +01:00
gingerBill
8629e5c958 Keep -vet happy 2025-04-10 11:41:05 +01:00
gingerBill
1f814c33dc Support subtargets in build tags: #build darwin:generic and #build linux:android, darwin:ios 2025-04-10 11:36:03 +01:00
gingerBill
5e63388de2 Fix init_android_values SDK check for odin check 2025-04-10 11:07:44 +01:00
Jonathan Tron
57a92259d7 Fix wrong function name from genericAdapterInfo to genericGetAdapterInfo in wgpu.js 2025-04-10 12:02:45 +02:00
Jeroen van Rijn
5912718002 Merge pull request #5023 from justgook/master
add quotes for absolute path
2025-04-09 14:39:31 +02:00
gingerBill
2548fc2431 Actually maybe fix #5015 2025-04-09 13:33:06 +01:00
Romāns Potašovs
dc75ee72ae add quotes for absolute path 2025-04-09 15:31:34 +03:00
gingerBill
a15b367921 Fix #5015 2025-04-09 13:29:56 +01:00
gingerBill
377e4e11ed Merge branch 'master' of https://github.com/odin-lang/Odin 2025-04-09 13:23:21 +01:00
gingerBill
a66ea9bf4a Remove warning on struct field parameters being too big for the stack 2025-04-09 13:23:15 +01:00
Jeroen van Rijn
d401a089c8 Merge pull request #5022 from IllusionMan1212/fix-printing-long-strings
gb.h: fix buffer overflow when printing long strings.
2025-04-09 07:37:59 +02:00
IllusionMan1212
640325512b gb.h: fix buffer overflow when printing long strings. fix #4831 2025-04-09 00:31:54 +02:00
Jeroen van Rijn
dd826b759f Merge pull request #5021 from flysand7/fix-badge
Fix the CI badge URL
2025-04-08 22:55:58 +02:00
flysand7
c95742ff2b Fix the CI badge URL 2025-04-09 07:46:44 +11:00
gingerBill
fbd29dd409 Merge pull request #5013 from IllusionMan1212/one-last-android-fix-maybe
fix: use the clang binary that's provided by the android NDK
2025-04-08 13:14:20 +01:00
gingerBill
145dac5b75 Merge pull request #5016 from Barinzaya/fix-math-nextafter
Fix `math.nextafter` skipping from 0 to 1
2025-04-08 13:13:51 +01:00
gingerBill
b07387321a Merge branch 'master' of https://github.com/odin-lang/Odin 2025-04-08 11:37:42 +01:00
gingerBill
fe040d1bbd Propagate @(link_section=<string>) to nested declarations 2025-04-08 11:36:53 +01:00
Jeroen van Rijn
329b15961a Don't run demo if building Odin fails.
`cl`'s return value was stomped by `mt`, so we ran the demo if `cl` failed, but `mt` succeeded.
This obscures `cl`'s output, so we're now checking both for errors.
2025-04-08 11:44:35 +02:00
Jeroen van Rijn
eeb8b8dcc4 Fix #5020 2025-04-08 10:13:45 +02:00