aboutsummaryrefslogtreecommitdiff
path: root/core/mem/allocators.odin
Commit message (Collapse)AuthorAgeFilesLines
* Replace `core:*` to `base:*` where appropriategingerBill2024-01-281-2/+2
|
* add resize_non_zeroed to query featuresColin Davidson2024-01-171-3/+6
|
* add non-zeroing append and resizeColin Davidson2023-12-041-14/+18
|
* [core]: Remove `do` keyword from the core libraryflysand72023-11-111-1/+3
|
* fix whitespaceBenjamin Findley2023-08-151-1/+1
|
* prevent potential segfaults when using large allocations from dynamic poolBenjamin Findley2023-08-111-0/+1
|
* Clean up usage of `using` throughout core and vendorgingerBill2023-07-311-52/+52
|
* Default to `panic` allocator for wasm targetsgingerBill2023-06-261-6/+6
|
* Add mutex to `mem.Tracking_Allocator`gingerBill2023-05-251-0/+7
|
* Add missing `Allocator_Error` and `@(require_results)` to many proceduresgingerBill2023-05-221-3/+12
|
* Replaced opaque bit-shifts with readable constants for memory unitshikari2022-12-241-1/+1
|
* Merge pull request #2181 from odin-lang/map-devgingerBill2022-11-171-9/+15
|\ | | | | New `map` internals
| * Add extra calls to `Tracking_Allocator`gingerBill2022-11-091-0/+11
| |
| * Fix bug with allocator not getting set on a `map`gingerBill2022-11-081-9/+4
| |
* | Handle freeing nil in scratch allocatorMichael Freundorfer2022-11-141-0/+3
|/
* Add `Allocator_Mode.Alloc_Non_Zerored`gingerBill2022-09-221-25/+42
|
* Clean up naming conventionsgingerBill2022-08-081-6/+29
|
* Merge pull request #1819 from IanLilleyT/no_query_infogingerBill2022-06-121-5/+4
|\ | | | | Allocator: tidying up Query_Info return values when not part of Query_Features
| * tidying up Query_Info return value when not in query featuresIan Lilley2022-06-011-5/+4
| |
* | tighter allocation for arena allocatorIan Lilley2022-06-011-4/+5
|/
* Correct logic for tracking allocator proc for freeing a nil pointergingerBill2022-05-151-1/+1
|
* Fix `dynamic_pool_destroy`gingerBill2022-05-151-0/+1
|
* [mem] Fix Dynamic_Pool.Jeroen van Rijn2022-05-051-0/+2
|
* Revert "Update `mem.nil_allocator` to match the same in `runtime`"Jeroen van Rijn2022-04-191-18/+1
| | | | | | The change broke JSON unmarshaling. This reverts commit 4484a3433d6c58f1d1c594a4c36317f323cb5102.
* Update `mem.nil_allocator` to match the same in `runtime`gingerBill2022-03-311-1/+18
|
* Remove unneeded semicolons from the core librarygingerBill2021-08-311-317/+317
|
* Unify `new`/`make` the internal logic between runtime and memgingerBill2021-08-231-3/+4
|
* Enforce `core:builtin` and `core:intrinsics` for importsgingerBill2021-08-211-1/+1
|
* `Allocator_Error.Mode_Not_Implemented`; Minor improvement to `map` runtime ↵gingerBill2021-08-081-106/+8
| | | | procedures
* Change uses for parapoly records to use `$` alwaysgingerBill2021-06-141-1/+1
|
* Update builtin procedures to support the new allocator features (without ↵gingerBill2021-04-191-2/+2
| | | | breaking other code)
* Improve the `Allocator` interface to support returning `Allocator_Error` to ↵gingerBill2021-04-191-174/+154
| | | | | | 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)
* Minor fixesgingerBill2021-03-181-2/+1
|
* Minimize unneeded castsgingerBill2021-03-031-9/+9
|
* Tracking allocator now tracks bad free callsLuka Aleksić2021-01-211-3/+18
|
* Add experimental `-insert-semicolon` functionality to tokenizer and parsergingerBill2020-11-011-1/+1
|
* Improve default temp_allocator; make nil loggers do nothing; improve ↵gingerBill2020-10-021-60/+99
| | | | mem.Scratch_Allocator behaviour
* Add `mem.Small_Allocator`gingerBill2020-10-021-0/+98
|
* Add `mem.Allocator_Query_Info` and `mem.query_info`gingerBill2020-08-161-4/+50
|
* Add `mem.Allocator_Mode.Query_Features, `mem.Allocator_Mode_Set`, ↵gingerBill2020-08-161-0/+56
| | | | `mem.query_features`
* Add `mem.Tracking_Allocator`gingerBill2020-08-161-0/+68
|
* Add `intrinsics.alloca`gingerBill2020-08-021-0/+80
|
* Add `raw_data` to replace cases in which `&x[0]` was usedgingerBill2020-06-291-9/+9
|
* Improve termination rules checking for missing `return`; Make diverging ↵gingerBill2020-06-061-7/+1
| | | | procedure `-> !` be terminators
* Move definition of mem.Allocator and log.Logger to `package runtime`, to ↵gingerBill2019-12-311-10/+13
| | | | reduce import cycle magic
* Make default `context.temp_allocator` thread safe when using `package thread`gingerBill2019-12-291-0/+12
|
* Fix mem.ArenaTetralux2019-12-151-1/+1
|
* Add assert into scratch_allocator_proc to prevent initialization cycles #504gingerBill2019-12-151-0/+2
|
* Minor code clean-upgingerBill2019-07-281-2/+0
|
* Make procedure parameters just named values rather than copied variablesgingerBill2019-07-151-10/+11
|