Commit Graph

4236 Commits

Author SHA1 Message Date
gingerBill
5b5154eda0 Add temp allocator guard; clean up indentation 2023-02-28 12:38:36 +00:00
gingerBill
ecf65303cd Make arena_free_all keep the first memory block for a .Growing arena 2023-02-28 12:37:05 +00:00
gingerBill
9afd9f9bea Merge branch 'master' into new-temp-allocator 2023-02-28 12:15:54 +00:00
gingerBill
c8d3a9121b Merge pull request #2354 from elusivePorpoise/master
FindFirstChangeNotification series of calls
2023-02-28 10:49:42 +00:00
Colin Davidson
edd78ae129 cleanup of os/linux 2023-02-28 01:17:43 -08:00
Elusive Porpoise
8738695bd8 FindFirstChangeNotification series of calls 2023-02-27 18:43:43 -08:00
gingerBill
9c7656d59a Add core:prof/spall 2023-02-26 14:00:39 +00:00
gingerBill
af265250c2 Merge pull request #2336 from colrdavidson/tsc_freq
Add TSC frequency getter
2023-02-22 21:22:10 +00:00
Colin Davidson
c6f463b8c9 shuffle tsc around a little 2023-02-22 12:28:24 -08:00
Colin Davidson
8e5e43f335 add sleep-fallback and invariant check 2023-02-21 17:48:49 -08:00
gingerBill
c36dc91849 Minor changes in runtime 2023-02-21 16:24:28 +00:00
Colin Davidson
91dccf8d62 more function name changes 2023-02-21 06:46:36 -08:00
Colin Davidson
1fc3a25f47 block all x86 tsc functions in when block 2023-02-21 06:28:55 -08:00
Colin Davidson
7322b63991 adjust func names 2023-02-21 06:22:19 -08:00
Colin Davidson
f860b09065 use the libc call on darwin so sysctlbyname works 2023-02-21 05:38:07 -08:00
Colin Davidson
45b742be23 sort out units to make things happier 2023-02-19 20:50:30 -08:00
Colin Davidson
d325ee4b91 more typo. yay. 2023-02-19 20:45:56 -08:00
Colin Davidson
87d6910bb8 intrinsics typo 2023-02-19 20:44:49 -08:00
Colin Davidson
9c9300ed58 derp. raw-syscalls 2023-02-19 20:44:00 -08:00
Colin Davidson
e559cf32fe oops, add intrinsics import 2023-02-19 20:39:36 -08:00
Colin Davidson
f2202db517 make darwin syscalls contextless 2023-02-19 20:38:46 -08:00
Colin Davidson
fb735883be add a tsc frequency get for windows 2023-02-19 20:33:48 -08:00
Colin Davidson
6a2ef1f4f3 add osx support 2023-02-19 20:23:35 -08:00
Colin Davidson
051c9cb564 begin adding tsc frequency getters 2023-02-19 20:08:11 -08:00
gingerBill
eb60ec3899 Fix unreachable error 2023-02-19 12:53:22 +00:00
gingerBill
806f56ca38 Remove debug string 2023-02-17 13:04:09 +00:00
gingerBill
210f47b8ab Merge branch 'master' of https://github.com/odin-lang/Odin 2023-02-15 11:32:02 +00:00
gingerBill
94c1331c07 Implement @(fini) (opposite of @(init)) 2023-02-15 11:31:51 +00:00
Colin Davidson
df58a00564 fix errno/signatures 2023-02-14 18:43:48 -08:00
Colin Davidson
d546677ae7 fix typo 2023-02-14 18:39:09 -08:00
Colin Davidson
04b1023988 make file access a little more normal across platforms 2023-02-14 18:34:03 -08:00
gingerBill
9a81071687 Merge branch 'master' into new-temp-allocator 2023-02-14 23:59:49 +00:00
gingerBill
8ddb493b96 Add #optional_allocator_error to make_map 2023-02-14 10:28:04 +00:00
gingerBill
039d9938b9 Fix return value 2023-02-10 17:20:14 +00:00
gingerBill
f50ea649f6 Minor fix 2023-02-10 17:15:40 +00:00
gingerBill
6e647a88eb Keep -vet happy 2023-02-10 16:36:50 +00:00
gingerBill
986cba584e Add runtime.DEFAULT_TEMP_ALLOCATOR_TEMP_GUARD where appropriate 2023-02-10 16:23:33 +00:00
gingerBill
b427a4c8c9 Minor change to arena_temp_end 2023-02-10 14:44:46 +00:00
gingerBill
133ee70a5b Add default_temp_allocator_temp_begin and default_temp_allocator_temp_end 2023-02-10 14:36:57 +00:00
gingerBill
494612827a Add Arena_Temp 2023-02-10 14:30:41 +00:00
gingerBill
1113f23475 Remove unused variable 2023-02-10 14:10:06 +00:00
gingerBill
8626f58773 Replace current default context.temp_allocator to use a growing arena rather than a ring buffer 2023-02-10 13:18:33 +00:00
gingerBill
7032867421 Pass #caller_location down correctly 2023-02-10 13:18:03 +00:00
gingerBill
162628000f Calculate the size needed before allocating 2023-02-10 11:55:08 +00:00
gingerBill
55b79c078c Remove := context.allocator usage in package os2 2023-02-10 11:46:29 +00:00
gingerBill
6179d4feb1 Rename to Type_Info_Parameters 2023-02-08 11:23:21 +00:00
hikari
854a95327a Updated documentation to reflect changes from commit 8a16fd7 2023-02-08 12:24:10 +02:00
gingerBill
7bbcf22deb Remove dead code (sort/map.odin) 2023-02-05 18:33:53 +00:00
gingerBill
802333e454 Fix arena.free_all 2023-02-03 12:40:52 +00:00
gingerBill
4cb16db4e9 Remove @(require_results) from one procedure 2023-01-30 12:51:56 +00:00