summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Schleifer <js@webkeks.org>2015-08-09 17:01:32 +0200
committerJonathan Schleifer <js@webkeks.org>2015-08-09 17:01:32 +0200
commitd654f5f390d381a9d305b59bd4b302ef9f6b14ef (patch)
tree798ec3d4e49e6b31afe3d942c059ce9a7f5f9c48
parent2a7ae201771c0b9c951fb1f92c94fca35abde62a (diff)
Remove objc_global_mutex_free()
Since this is using of_once to initialize it, it won't be re-initialized after freeing, therefore freeing is a bad idea.
-rw-r--r--src/runtime/init.m1
-rw-r--r--src/runtime/threading.m7
2 files changed, 0 insertions, 8 deletions
diff --git a/src/runtime/init.m b/src/runtime/init.m
index c7182db2..59dbe27b 100644
--- a/src/runtime/init.m
+++ b/src/runtime/init.m
@@ -44,5 +44,4 @@ objc_exit(void)
objc_dtable_cleanup();
objc_global_mutex_unlock();
- objc_global_mutex_free();
}
diff --git a/src/runtime/threading.m b/src/runtime/threading.m
index aa01bbfd..f48cce0e 100644
--- a/src/runtime/threading.m
+++ b/src/runtime/threading.m
@@ -48,10 +48,3 @@ objc_global_mutex_unlock(void)
if (!of_rmutex_unlock(&global_mutex))
OBJC_ERROR("Failed to unlock global mutex!");
}
-
-void
-objc_global_mutex_free(void)
-{
- if (!of_rmutex_free(&global_mutex))
- OBJC_ERROR("Failed to free global mutex!");
-}