Remove LOCK_DECLARE and LOCK_INIT -- unused and incorrect comments (not idempotent...
authormonojenkins <jo.shields+jenkins@xamarin.com>
Thu, 20 Feb 2020 09:51:40 +0000 (04:51 -0500)
committerGitHub <noreply@github.com>
Thu, 20 Feb 2020 09:51:40 +0000 (10:51 +0100)
Co-authored-by: Jay Krell <jay.krell@cornell.edu>
src/mono/mono/sgen/sgen-gc.h

index 2bf2929..2478a0b 100644 (file)
@@ -76,10 +76,6 @@ struct _GCMemSection {
 /*
  * Recursion is not allowed for the thread lock.
  */
-#define LOCK_DECLARE(name) mono_mutex_t name
-/* if changing LOCK_INIT to something that isn't idempotent, look at
-   its use in mono_gc_base_init in sgen-gc.c */
-#define LOCK_INIT(name)        mono_os_mutex_init (&(name))
 #define LOCK_GC do { sgen_gc_lock (); } while (0)
 #define UNLOCK_GC do { sgen_gc_unlock (); } while (0)