From 84e65c63e7482590d535e86f7660a00ae8a0cecb Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 17 Jul 2019 19:23:16 +0200 Subject: Start on amal program Fix mutex issue in lhs expr which can cause a deadlock when a file has an error and throws and doesn't close the mutex and another thread waits for that mutex. The mutex can instead be removed and ignore race conditions which are uncommon. This should improve memory usage and performance. --- src/std/hash_map.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/std/hash_map.c') diff --git a/src/std/hash_map.c b/src/std/hash_map.c index d13bf3d..1ad0dea 100644 --- a/src/std/hash_map.c +++ b/src/std/hash_map.c @@ -202,7 +202,7 @@ bool hash_map_get(HashMap *self, BufferView key, void *value) { #define MIN(a, b) ((a) < (b) ? (a) : (b)) -int hash_compare_string(const void *a, const void *b) { +int hash_map_compare_string(const void *a, const void *b) { const BufferView *lhs; const BufferView *rhs; int mem_diff; -- cgit v1.2.3