| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Add `mem.make_over_aligned` | gingerBill | 2025-03-31 | 1 | -0/+28 |
| | | |||||
| * | Split `mem.make_map` to match the `runtime` procs. | Barinzaya | 2025-03-22 | 1 | -3/+20 |
| | | | | | | | | | | The existing `mem.make_map` passes a capacity, but the builtin `make_map` no longer takes a capacity--it was separated to `make_map_cap` to allow for making a map without an allocation (#4340). `core:mem` was not updated to reflect this, so any usage of `mem.make` to make a map will currently result in a compile error. | ||||
| * | Add SoA make/delete to core:mem | teapo | 2025-01-15 | 1 | -3/+94 |
| | | |||||
| * | [mem]: Adjust the docs for calc_padding_with_header | flysand7 | 2024-09-14 | 1 | -2/+1 |
| | | |||||
| * | [mem]: Fix handling of default resize to check alignment | flysand7 | 2024-09-11 | 1 | -1/+1 |
| | | |||||
| * | [mem]: Adjust docs for alloc | flysand7 | 2024-09-10 | 1 | -16/+150 |
| | | |||||
| * | [mem]: Add non_zeroed versions of resize | flysand7 | 2024-09-08 | 1 | -6/+94 |
| | | |||||
| * | [mem]: Document alloc.odin | flysand7 | 2024-09-08 | 1 | -41/+524 |
| | | |||||
| * | [mem]: Code formatting | flysand7 | 2024-09-07 | 1 | -34/+186 |
| | | |||||
| * | Fix #4151 | Feoramund | 2024-08-26 | 1 | -2/+2 |
| | | | | | | The `core:mem` procs were calling the wrong `runtime` procs for their number of arguments. | ||||
| * | Minimize code duplication in `core:mem` by using the `base:runtime` calls | gingerBill | 2024-04-03 | 1 | -50/+15 |
| | | |||||
| * | Replace `core:*` to `base:*` where appropriate | gingerBill | 2024-01-28 | 1 | -1/+1 |
| | | |||||
| * | oops, indentation | Colin Davidson | 2024-01-17 | 1 | -14/+14 |
| | | |||||
| * | add resize_non_zeroed to query features | Colin Davidson | 2024-01-17 | 1 | -2/+22 |
| | | |||||
| * | add non-zeroing append and resize | Colin Davidson | 2023-12-04 | 1 | -0/+2 |
| | | |||||
| * | Merge branch 'master' into separate-int-word-sizes | gingerBill | 2023-06-06 | 1 | -33/+33 |
| |\ | |||||
| | * | Add missing `Allocator_Error` and `@(require_results)` to many procedures | gingerBill | 2023-05-22 | 1 | -33/+33 |
| | | | |||||
| * | | Begin work on new pseudo-architecture: wasm64p32 | gingerBill | 2023-04-20 | 1 | -1/+1 |
| |/ | |||||
| * | Correct `map_reserve_dynamic` caused by an bizarre code generation bug | gingerBill | 2022-11-13 | 1 | -5/+3 |
| | | |||||
| * | Add extra calls to `Tracking_Allocator` | gingerBill | 2022-11-09 | 1 | -3/+11 |
| | | |||||
| * | Make `map_free_dynamic` take the total size of the allocation | gingerBill | 2022-11-08 | 1 | -2/+1 |
| | | |||||
| * | Begin work on implementing the new `map` internals | gingerBill | 2022-11-07 | 1 | -11/+10 |
| | | |||||
| * | Fix typo | gingerBill | 2022-09-22 | 1 | -1/+1 |
| | | |||||
| * | Add `Allocator_Mode.Alloc_Non_Zerored` | gingerBill | 2022-09-22 | 1 | -0/+4 |
| | | |||||
| * | Clean-up and unification for the allocation procedures | gingerBill | 2022-08-08 | 1 | -36/+5 |
| | | |||||
| * | Improve `resize` call | gingerBill | 2022-08-08 | 1 | -54/+9 |
| | | |||||
| * | Fix typo | gingerBill | 2022-05-21 | 1 | -1/+1 |
| | | |||||
| * | Add `mem.DEFAULT_PAGE_SIZE` | gingerBill | 2022-05-21 | 1 | -0/+5 |
| | | |||||
| * | fix mem.new_clone | Jeroen van Rijn | 2021-09-19 | 1 | -4/+5 |
| | | |||||
| * | Revert "Merge pull request #1177 from Kelimion/new_clone" | Jeroen van Rijn | 2021-09-19 | 1 | -5/+4 |
| | | | | | | This reverts commit efa513262e20d87242731764628440b69341bcbe, reversing changes made to daccfca11df1cb394e99b7f3ad369340147c1fe9. | ||||
| * | fix mem.new_clone | Jeroen van Rijn | 2021-09-19 | 1 | -4/+5 |
| | | |||||
| * | Remove unneeded semicolons from the core library | gingerBill | 2021-08-31 | 1 | -120/+120 |
| | | |||||
| * | Unify `new`/`make` the internal logic between runtime and mem | gingerBill | 2021-08-23 | 1 | -26/+39 |
| | | |||||
| * | Add `#any_int` directive to replace `auto_cast` uses on parameters. | gingerBill | 2021-08-15 | 1 | -5/+5 |
| | | |||||
| * | `Allocator_Error.Mode_Not_Implemented`; Minor improvement to `map` runtime ↵ | gingerBill | 2021-08-08 | 1 | -6/+24 |
| | | | | | procedures | ||||
| * | Fix typo in core:mem alloc() comment. | Jeroen van Rijn | 2021-05-06 | 1 | -1/+1 |
| | | |||||
| * | Update builtin procedures to support the new allocator features (without ↵ | gingerBill | 2021-04-19 | 1 | -3/+4 |
| | | | | | breaking other code) | ||||
| * | Improve the `Allocator` interface to support returning `Allocator_Error` to ↵ | gingerBill | 2021-04-19 | 1 | -13/+93 |
| | | | | | | | allow for safer calls Virtually all code (except for user-written custom allocators) should work as normal. Extra features will need to be added to make the current procedures support the `Allocator_Error` return value (akin to #optional_ok) | ||||
| * | Replace usage of `inline proc` with `#force_inline proc` in the core library | gingerBill | 2021-02-23 | 1 | -8/+8 |
| | | |||||
| * | Fix `delete_map` | gingerBill | 2021-02-02 | 1 | -1/+1 |
| | | |||||
| * | Remove usage of `do` in core library | gingerBill | 2020-09-23 | 1 | -9/+23 |
| | | |||||
| * | Add `mem.Allocator_Query_Info` and `mem.query_info` | gingerBill | 2020-08-16 | 1 | -6/+20 |
| | | |||||
| * | Add `mem.Allocator_Mode.Query_Features, `mem.Allocator_Mode_Set`, ↵ | gingerBill | 2020-08-16 | 1 | -0/+18 |
| | | | | | `mem.query_features` | ||||
| * | Add `mem.Tracking_Allocator` | gingerBill | 2020-08-16 | 1 | -1/+1 |
| | | |||||
| * | Fix `reflect.length` | gingerBill | 2020-04-15 | 1 | -1/+3 |
| | | |||||
| * | Change behaviour for zero-sized value types of array-related types; Fix make ↵ | gingerBill | 2020-04-12 | 1 | -2/+6 |
| | | | | | behaviour to always zero memory | ||||
| * | Fix make and reserve | Tetralux | 2020-01-03 | 1 | -1/+3 |
| | | | | | | | | | | | | | | | | - Set the allocator, even if memory allocation fails. Right now it doesn't, which means that if allocation fails, it'll use the context allocator instead. This memory will be leaked if the user doesn't understand that this happened. - Only set len and cap of the array returned from make iif the memory allocation succeeded. This means that reserve will return false if you do this: ``` a := make([dynamic]int, failing_allocator); if !reserve(&a, 5) do return; // or whatever indicates failure ``` | ||||
| * | Fix behaviour for `make` to return `nil` when alloc returns `nil` | gingerBill | 2020-01-03 | 1 | -0/+2 |
| | | |||||
| * | Move definition of mem.Allocator and log.Logger to `package runtime`, to ↵ | gingerBill | 2019-12-31 | 1 | -6/+13 |
| | | | | | reduce import cycle magic | ||||
| * | Implement core:thread and core:sync on Unix using pthreads | Tetralux | 2019-12-01 | 1 | -3/+9 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also do some cleanup and refactoring of the thread, sync and time APIs. - remove 'semaphore_release' because 'post' and 'wait' is easier to understand - change 'semaphore_wait' to '*_wait_for' to match Condition - pthreads can be given a stack, but doing so requires the user to set up the guard pages manually. BE WARNED. The alignment requirements of the stack are also platform-dependant; it may need to be page size aligned on some systems. Unclear which systems, however. See 'os.get_page_size', and 'mem.make_aligned'. HOWEVER: I was unable to get custom stacks with guard pages working reliably, so while you can do it, the API does not support it. - add 'os.get_page_size', 'mem.make_aligned', and 'mem.new_aligned'. - removed thread return values because windows and linux are not consistent; windows returns 'i32' and pthreads return 'void*'; besides which, if you really wanted to communicate how the thread exited, you probably wouldn't do it with the thread's exit code. - fixed 'thread.is_done' on Windows; it didn't report true immediately after calling 'thread.join'. - moved time related stuff out of 'core:os' to 'core:time'. - add 'mem.align_backward' - fixed default allocator alignment The heap on Windows, and calloc on Linux, both have no facility to request alignment. It's a bit of hack, but the heap_allocator now overallocates; `size + alignment` bytes, and aligns things to at least 2. It does both of these things to ensure that there is at least two bytes before the payload, which it uses to store how much padding it needed to insert in order to fulfil the alignment requested. - make conditions more sane by matching the Windows behaviour. The fact that they were signalled now lingers until a thread tries to wait, causing them to just pass by uninterrupted, without sleeping or locking the underlying mutex, as it would otherwise need to do. This means that a thread no longer has to be waiting in order to be signalled, which avoids timing bugs that causes deadlocks that are hard to debug and fix. See the comment on the `sync.Condition.flag` field. - add thread priority: `thread.create(worker_proc, .High)` | ||||