Commit Graph

7776 Commits

Author SHA1 Message Date
gingerBill
4a8564aff7 Update threading.cpp to have helgrind annotations 2023-01-16 19:23:13 +00:00
gingerBill
edb23db2ae Fix potential race condition when determining the package name 2023-01-16 18:31:40 +00:00
gingerBill
0b01cfd853 Fix minor possible race condition 2023-01-16 18:18:08 +00:00
gingerBill
0d059aa797 Replace BlockingMutex with RwMutex 2023-01-16 18:08:28 +00:00
gingerBill
65c0255e7e Replace RecursiveMutex with a BlockingMutex 2023-01-16 18:05:58 +00:00
gingerBill
b289a27c4e Move the mutex up a little 2023-01-16 17:04:37 +00:00
gingerBill
d085283f20 Fix cnd_timedwait 2023-01-16 15:32:23 +00:00
gingerBill
b6ca10cd5e Fix memory leak in os.get_current_directory on failure on *nix systems 2023-01-16 15:29:45 +00:00
gingerBill
7416f72565 Make static value atomic too 2023-01-16 15:12:34 +00:00
gingerBill
b51be71a6f Remove initialization on static atomic 2023-01-16 15:11:24 +00:00
gingerBill
e488cf4601 Enforce atomic on hasher id 2023-01-16 15:09:29 +00:00
gingerBill
5d397804f7 Fix #2286 by printing an error correctly 2023-01-16 13:22:37 +00:00
gingerBill
a5a7226885 Remove auto_cast 2023-01-16 12:09:09 +00:00
gingerBill
2dca39b557 Remove auto_cast procedure field flag
Fixes #2285
2023-01-16 12:06:03 +00:00
gingerBill
b55fa268bf Fix #2267 by making it an error 2023-01-16 12:03:46 +00:00
gingerBill
c819c350d6 Add error message for atomic intrinsics to prevent arbitrary types 2023-01-16 11:58:14 +00:00
gingerBill
d55248ab0f Fix #2301 2023-01-16 11:45:15 +00:00
gingerBill
68b2d4b9e2 Fix #2305 2023-01-16 11:41:58 +00:00
gingerBill
54f02f59db Fix compiler error on clang 2023-01-16 11:03:24 +00:00
gingerBill
64047cbf05 Fix #2304 2023-01-16 11:02:42 +00:00
gingerBill
b0619980b2 Add /NOIMPLIB /NOEXP on MSVC linker by default when building an executable 2023-01-14 13:42:29 +00:00
gingerBill
9aa9429135 Update debugf usage 2023-01-14 13:42:04 +00:00
gingerBill
518f30e523 Bring PtrMap inline with StringMap 2023-01-14 13:23:17 +00:00
gingerBill
868aa4c14a Minor changes to StringMap allocation 2023-01-14 12:58:45 +00:00
gingerBill
1ab90de493 Minimize StringMap structure usage 2023-01-14 12:33:42 +00:00
gingerBill
1064bcd060 Clean up use of StringMap 2023-01-13 12:13:26 +00:00
gingerBill
1e21125527 Split out object generation more 2023-01-12 21:49:53 +00:00
gingerBill
4a8c37dd52 Prepare for arbitrary separate modules 2023-01-12 21:45:02 +00:00
gingerBill
3b22c6620c Begin to generalize modules away from AstPackage * in -use-separate-modules 2023-01-12 17:13:25 +00:00
gingerBill
402a165b60 Correct missing procedures in other build modules which cause a linkage problem 2023-01-12 16:59:16 +00:00
gingerBill
34f9170189 Fix race condition with polymorphic record generation 2023-01-12 16:06:09 +00:00
gingerBill
38136e15fc add_deps_from_child_to_parent always 2023-01-12 15:44:55 +00:00
gingerBill
e97bf2ef35 Minimize contention on the deps for decls 2023-01-12 15:38:23 +00:00
gingerBill
d6c54148d9 Minor clean up 2023-01-12 15:23:59 +00:00
gingerBill
cbe3791b42 Replace all queues with MPSCQueue where possible 2023-01-12 13:11:17 +00:00
gingerBill
b470ceb470 Correct mpsc_dequeue 2023-01-12 12:59:09 +00:00
gingerBill
c15db05199 Implement MPSCQueue 2023-01-12 12:41:53 +00:00
gingerBill
9428f792ed Comment out allocator guards for the time being 2023-01-12 01:09:36 +00:00
gingerBill
520ff731de Add ArenaTemp to the compiler 2023-01-12 00:47:20 +00:00
gingerBill
e9cfe698ba Make the heap_allocator just be the permanent_allocator
This improves the speed of the compiler with very little memory increase (which surprised me, Ginger Bill)
2023-01-12 00:20:25 +00:00
gingerBill
5fa66ac6a8 Fix random race condition for poly records 2023-01-12 00:18:58 +00:00
gingerBill
320062157f Merge pull request #2288 from odin-lang/compiler-improvements-2023-01
Multithreading Compiler Improvements 2023-01
2023-01-11 22:14:53 +00:00
gingerBill
d7d6608142 Remove unneeded CI stage 2023-01-11 22:08:25 +00:00
gingerBill
7f2ef2ac67 Move check for type info above 2023-01-11 21:52:04 +00:00
gingerBill
7124d541a1 General optimizations 2023-01-11 18:10:27 +00:00
gingerBill
3c7e45a46f Remove possible race condition in type_size_of/type_align_of 2023-01-11 17:45:18 +00:00
gingerBill
6ec014e980 Make -threaded-checker the default not (opt out with -no-threaded-checker) 2023-01-11 17:27:06 +00:00
gingerBill
9b47a5eddb Fix macro issue 2023-01-11 00:49:04 +00:00
gingerBill
3e8c63ad31 Add Odin check -threaded-checker test for windows 2023-01-10 20:46:00 +00:00
gingerBill
15469758de Merge branch 'master' into compiler-improvements-2023-01 2023-01-10 16:25:38 +00:00