| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Use `contextless` where possibledev-2022-03 | gingerBill | 2022-03-01 | 4 | -20/+20 |
| | | |||||
| * | Correct `alloc_from_memory_block` | gingerBill | 2022-03-01 | 2 | -15/+47 |
| | | |||||
| * | [mem] Add missing `\n` to tracking allocator example. | Jeroen van Rijn | 2022-03-01 | 1 | -13/+13 |
| | | |||||
| * | mem: Add `doc.odin` with `Tracking_Allocator` example. | Jeroen van Rijn | 2022-02-05 | 1 | -0/+34 |
| | | |||||
| * | core/sys/unix: Add syscalls_linux.odin | Yawning Angel | 2021-11-17 | 1 | -42/+34 |
| | | | | | | | | 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. | ||||
| * | core/mem: Add zero_explicit | Yawning Angel | 2021-10-31 | 1 | -0/+9 |
| | | | | | | | | | | | | | | | | | | | | | | | This call is intended to provide the ability to securely scrub memory without compiler interference, in a similar manner to explicit_bzero, memset_s, SecureZeroMemory. The approach taken is a volatile memset followed by a seqentially consistent memory fence, to prevent the call from being optimized away by DSE, and from being reordered. An identical approach is currently being used by the zeroize Rust crate, and is effective in practice. LLVM IR output: ``` ; Function Attrs: nounwind define internal i8* @mem.zero_explicit(i8* %0, i64 %1) #0 { decls: call void @llvm.memset.p0i8.i64(i8* %0, i8 0, i64 %1, i1 true) fence seq_cst ret i8* %0 } ``` | ||||
| * | Improve internal procedures | gingerBill | 2021-10-25 | 1 | -8/+2 |
| | | |||||
| * | Remove nonsense from `static_arena_init` | gingerBill | 2021-10-05 | 1 | -10/+1 |
| | | |||||
| * | Add error value to `commit` | gingerBill | 2021-10-05 | 4 | -10/+29 |
| | | |||||
| * | Correct `mmap` usage | gingerBill | 2021-10-05 | 1 | -5/+4 |
| | | |||||
| * | Add arena_util.odin | gingerBill | 2021-10-05 | 2 | -0/+40 |
| | | |||||
| * | Add `static_arena_bootstrap_new` | gingerBill | 2021-10-05 | 1 | -1/+24 |
| | | |||||
| * | Minor cleanup | gingerBill | 2021-10-05 | 2 | -8/+13 |
| | | |||||
| * | Merge branch 'master' of https://github.com/odin-lang/Odin | gingerBill | 2021-10-05 | 1 | -1/+0 |
| |\ | |||||
| | * | Remove assert from `mem.ptr_to_bytes`. Fixes #1206 | Jeroen van Rijn | 2021-10-05 | 1 | -1/+0 |
| | | | |||||
| * | | Add virtual.Static_Arena | gingerBill | 2021-10-05 | 1 | -0/+134 |
| | | | |||||
| * | | Clean up `Memory_Block` logic | gingerBill | 2021-10-05 | 4 | -90/+135 |
| |/ | |||||
| * | Rename to growing_arena.odin | gingerBill | 2021-10-04 | 1 | -0/+4 |
| | | |||||
| * | Add `Protect_Flags` for `virtual.protect` | gingerBill | 2021-10-04 | 3 | -9/+38 |
| | | |||||
| * | Add virtual_linux.odin | gingerBill | 2021-10-04 | 1 | -0/+101 |
| | | |||||
| * | Separate out the virtual memory allocation procedures | gingerBill | 2021-10-04 | 3 | -47/+95 |
| | | | | | `reserve`, `commit`, `reserve_and_commit`, `decommit`, `release`, `protect` | ||||
| * | Minor clean up | gingerBill | 2021-10-03 | 1 | -5/+2 |
| | | |||||
| * | Remove mutex from `Growing_Arena`; Add `Growing_Arena_Temp` | gingerBill | 2021-10-03 | 1 | -24/+73 |
| | | |||||
| * | Add `@(init)` usage to `core:mem/virtual` | gingerBill | 2021-10-03 | 1 | -4/+1 |
| | | |||||
| * | Rename `virtual.Arena` to `virtual.Growing_Arena` | gingerBill | 2021-09-29 | 1 | -11/+12 |
| | | |||||
| * | Add a mutex to `arena_free_all` | gingerBill | 2021-09-29 | 1 | -0/+6 |
| | | |||||
| * | Add a mutex to virtual.Arena | gingerBill | 2021-09-29 | 1 | -0/+13 |
| | | |||||
| * | Add `core:mem/virtual` | gingerBill | 2021-09-29 | 3 | -0/+289 |
| | | |||||
| * | `mem.Raw_*` alias `runtime.Raw_*` | gingerBill | 2021-09-25 | 1 | -30/+8 |
| | | |||||
| * | Make `runtime.memset` use `int` for the length from `uint` | gingerBill | 2021-09-23 | 1 | -1/+1 |
| | | |||||
| * | 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 |
| | | |||||
| * | Minor improvements to mem.odin | gingerBill | 2021-09-11 | 1 | -5/+8 |
| | | |||||
| * | Fix typo | gingerBill | 2021-09-10 | 1 | -1/+1 |
| | | |||||
| * | Add other constants to c and libc | gingerBill | 2021-09-10 | 1 | -1/+1 |
| | | |||||
| * | Unify `memset` usage across platforms and `core:c/libc` | gingerBill | 2021-09-10 | 1 | -8/+1 |
| | | |||||
| * | libc changes: unify c and libc types; Add `[^]T` where appropriate | gingerBill | 2021-09-10 | 1 | -2/+9 |
| | | |||||
| * | Strip semicolons in core which were missing | gingerBill | 2021-09-08 | 1 | -1/+4 |
| | | |||||
| * | Correct "contextless" stuff in mem | gingerBill | 2021-09-08 | 1 | -13/+12 |
| | | |||||
| * | Fix typo | gingerBill | 2021-09-08 | 1 | -1/+1 |
| | | |||||
| * | Make many `mem` procedures `"contextless"` | gingerBill | 2021-09-08 | 2 | -47/+50 |
| | | |||||
| * | Strip even more semicolons if followed by a `}` or `)` on the same line | gingerBill | 2021-08-31 | 1 | -4/+4 |
| | | |||||
| * | Remove unneeded semicolons from the core library | gingerBill | 2021-08-31 | 4 | -550/+550 |
| | | |||||
| * | Add `map_insert` which returns the pointer to inserted value | gingerBill | 2021-08-29 | 1 | -0/+11 |
| | | |||||
| * | Correct `mem.clone_slice` | gingerBill | 2021-08-23 | 1 | -2/+2 |
| | | |||||
| * | Unify `new`/`make` the internal logic between runtime and mem | gingerBill | 2021-08-23 | 2 | -29/+43 |
| | | |||||
| * | Remove deprecated procedure `slice_ptr_to_bytes` | gingerBill | 2021-08-22 | 1 | -5/+0 |
| | | |||||
| * | Use multi-pointers when appropriate | gingerBill | 2021-08-22 | 1 | -4/+3 |
| | | |||||
| * | Enforce `core:builtin` and `core:intrinsics` for imports | gingerBill | 2021-08-21 | 1 | -1/+1 |
| | | |||||