Commit Graph

311 Commits

Author SHA1 Message Date
gingerBill
93fabf8628 Replace err != 0 with err != nil where possible 2024-08-04 14:57:25 +01:00
Jeroen van Rijn
a8ce5bd005 Merge pull request #3903 from laytan/allow-mem-virtual-import-on-more-targets
allow `core:mem/virtual` import on more targets by expanding the `other` implementation
2024-07-11 02:12:53 +02:00
Laytan Laats
0dfc660c71 allow core:mem/virtual import on more targets by expanding the other implementation 2024-07-11 01:55:59 +02:00
Laytan Laats
2d8d0dd851 fix @(optimization_mode) usage in builtin collections 2024-07-08 21:07:53 +02:00
DerTee
6b373cf49e fix #3692 memory alignment bug in core:mem.dynamic_pool_alloc_bytes 2024-07-03 22:14:28 +02:00
gingerBill
e296d6fb90 Fix loads of indentation issues with mixing spaces and tabs 2024-06-29 19:50:51 +01:00
gingerBill
5413a8b744 Even more style fixes 2024-06-29 19:11:36 +01:00
Laytan Laats
1c199f52d6 tlsf: destroy first pool & properly zero memory 2024-06-27 19:27:07 +02:00
Jeroen van Rijn
28ea9425fd Add core:mem tests. 2024-06-06 14:59:19 +02:00
Jeroen van Rijn
72f6b5479d Fix fls_uint 2024-06-06 14:42:19 +02:00
Jeroen van Rijn
0b6d73c86e Add original LICENSE 2024-06-06 14:29:28 +02:00
gingerBill
fac9ce5d83 Change to init from create 2024-06-05 15:30:35 +01:00
gingerBill
d3342c2381 core:mem/tlsf - "Two-Level Segregated Fit" memory allocator 2024-06-05 15:15:39 +01:00
Jeroen van Rijn
c3b94b9e1d Merge pull request #3646 from Feoramund/multi-test
Refactor the test runner
2024-06-04 13:23:52 +02:00
Feoramund
d7f6def8ad Add aliases for Raw_* complex/quaternion types into core:mem 2024-06-03 17:18:27 -04:00
Feoramund
4e1dd4ced2 Move Raw_Complex/Quaternion types to base:runtime 2024-06-03 15:40:28 -04:00
Feoramund
ccdbd4b6ce Simplify casts in mem.Rollback_Stack procs 2024-06-02 14:54:32 -04:00
Feoramund
bf42e39b1c Be specific about int size for Rollback_Stack asserts
This should fix tests failing on 32-bit platforms.
2024-06-02 14:47:07 -04:00
Feoramund
89d8df28be Combine multi-line attributes onto one line 2024-06-02 14:47:07 -04:00
Feoramund
eadfbb1318 Forbid singleton allocations from shrinking their block offset 2024-06-02 14:47:06 -04:00
Feoramund
09ef08f035 Add more sanity checking to mem.Rollback_Stack 2024-06-02 14:47:06 -04:00
Feoramund
0f675fa436 Use uintptr where applicable in mem.Rollback_Stack 2024-06-02 14:47:06 -04:00
Feoramund
568b746c98 Fix indentation 2024-06-02 14:47:06 -04:00
Feoramund
50dffaf131 Add mem.Rollback_Stack 2024-06-02 14:34:30 -04:00
Feoramund
8137b9dd75 Add mem.tracking_allocator_reset 2024-06-02 14:34:30 -04:00
Andreas T Jonsson
7feff1c113 Merged with master 2024-05-02 09:27:46 +02:00
gingerBill
a37826e646 Merge pull request #3268 from olesya-wo/core-mem-tracking_allocator-improve
Improved statistics for core/mem/Tracking_Allocator
2024-04-28 16:01:01 +01:00
Laytan Laats
0530f86a48 fix: buddy allocator wrong query info pointer 2024-04-28 16:09:03 +02:00
Andreas T Jonsson
8ffe577a15 Added missing build tags in core 2024-04-25 09:43:54 +02:00
gingerBill
5fe0788cff Minimize code duplication in core:mem by using the base:runtime calls 2024-04-03 11:47:39 +01:00
Chris
55141bdbb1 Make Mutex_Allocator use Ada_Case 2024-03-13 15:29:02 +00:00
olesya-wo
51a4d97f03 type conversion fix 2024-03-12 18:25:54 +03:00
olesya-wo
d979129a50 Naming and type changes 2024-03-12 16:32:17 +03:00
olesya-wo
9045c9ed0c Improved statistics for core/mem/Tracking_Allocator 2024-03-12 13:53:31 +03:00
gingerBill
e01701ce0e Fix typo 2024-03-07 12:32:46 +00:00
gingerBill
f9b14500be Add default_commit_size to virtual.Arena 2024-03-07 12:30:34 +00:00
gingerBill
6d5b1800fe Fix typo 2024-03-06 16:34:17 +00:00
gingerBill
0f5328973e Add mem.Mutex_Allocator 2024-03-06 16:33:54 +00:00
gingerBill
65277ddd6b Add missing attribute 2024-03-06 16:30:39 +00:00
gingerBill
46718d6d85 Add Query_Info to Buddy_Allocator 2024-03-06 16:26:10 +00:00
gingerBill
2a0543d2f0 Add mem.Buddy_Allocator 2024-03-06 16:14:45 +00:00
gingerBill
792f06a234 Fix indentation 2024-03-06 15:29:07 +00:00
gingerBill
ffa3669d02 Add virtual.Arena utilities: new, new_aligned, make 2024-03-06 15:23:56 +00:00
Laytan
9b4cd0743c mem/virtual: fix arena_static_reset_to inverted logic 2024-02-06 20:24:38 +01:00
gingerBill
539cec7496 Move Tracking_Allocator to its own file. 2024-02-01 13:01:38 +00:00
gingerBill
9a16bc5fc5 Remove core:os dependency for base:runtime 2024-01-28 22:40:46 +00:00
gingerBill
3e7e779abf Replace core:* to base:* where appropriate 2024-01-28 22:18:51 +00:00
gingerBill
799f4379d8 Keep vet happy 2024-01-17 22:51:49 +00:00
gingerBill
bd51b21386 Fix typo 2024-01-17 22:47:23 +00:00
gingerBill
276284cbec Fix typo 2024-01-17 22:44:28 +00:00