aboutsummaryrefslogtreecommitdiff
path: root/src/llvm_backend.hpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2025-04-02 18:26:40 +0100
committergingerBill <bill@gingerbill.org>2025-04-02 18:26:40 +0100
commit5eaff20f4a672760b4d90d596dd46be132634f41 (patch)
treeebe2fb76769dba67bb7deb70a3fe6a0afac6ca12 /src/llvm_backend.hpp
parentb615e772642c93602f34a8bcfb5298797d4b62ad (diff)
Add mutex for `lb_handle_objc_find_or_register_class`
Diffstat (limited to 'src/llvm_backend.hpp')
-rw-r--r--src/llvm_backend.hpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/llvm_backend.hpp b/src/llvm_backend.hpp
index 610fb72e4..f9f96a906 100644
--- a/src/llvm_backend.hpp
+++ b/src/llvm_backend.hpp
@@ -165,7 +165,6 @@ struct lbModule {
PtrMap<u64/*type hash*/, LLVMTypeRef> func_raw_types; // mutex: func_raw_types_mutex
RecursiveMutex types_mutex;
RecursiveMutex func_raw_types_mutex;
- RecursiveMutex objc_selectors_mutex;
i32 internal_type_level;
RwMutex values_mutex;
@@ -199,6 +198,10 @@ struct lbModule {
RecursiveMutex debug_values_mutex;
PtrMap<void *, LLVMMetadataRef> debug_values;
+
+ RecursiveMutex objc_classes_mutex;
+ RecursiveMutex objc_selectors_mutex;
+
StringMap<lbObjcRef> objc_classes;
StringMap<lbObjcRef> objc_selectors;